19 using Lucene.Net.Support;
21 namespace Lucene.Net.Index
32 internal System.String s;
33 internal void Init(System.String s)
40 public int Read(
char[] c)
42 return Read(c, 0, c.Length);
45 public override int Read(System.Char[] c,
int off,
int len)
71 public override void Close()
76 public override int Read()
88 public override int ReadBlock(
char[] buffer,
int index,
int count)
90 return Read(buffer, index, count);
93 public override string ReadLine()
96 for (i = upto; i < s.Length; i++)
99 if (c ==
'\r' || c ==
'\n')
101 string result = s.Substring(upto, i - upto);
103 left = s.Length - upto;
104 if (c ==
'\r' && upto < s.Length && s[upto] ==
'\n')
119 public override int Peek()
128 public override string ReadToEnd()
130 string result = s.Substring(upto, left);