Ejemplo n.º 1
0
        public List <int> ConvertDocument(string name)
        {
            var document = _documentReader.Read(name);
            var tokens   = document.Split(' ');

            return(tokens
                   .Select(t => _romanConverter.Convert(t))
                   .ToList());
        }
Ejemplo n.º 2
0
        private static void bulkTransfer(IDocumentReader reader, IDocumentWriter writer)
        {
            using (reader)
            {
                using (writer)
                {
                    writer.Schema = reader.Schema;

                    while (reader.Read())
                    {
                        var doc = reader.Current;
                        writer.Write(doc);
                    }
                }
            }
        }
 public static string ReadLinearSpan(this IDocumentReader reader, IndexSpan span)
 => reader.Read(span.Start, span.Length);