18 namespace Lucene.Net.Analysis
32 private long currentPosition = -1;
33 private bool isDisposed;
44 protected internal virtual int Correct(
int currentOff)
52 public override int CorrectOffset(
int currentOff)
57 protected override void Dispose(
bool disposing)
59 if (isDisposed)
return;
71 base.Dispose(disposing);
74 public override int Read(System.Char[] cbuf,
int off,
int len)
76 return input.Read(cbuf, off, len);
79 public bool MarkSupported()
81 return input.BaseStream.CanSeek;
84 public void Mark(
int readAheadLimit)
86 currentPosition = input.BaseStream.Position;
87 input.BaseStream.Position = readAheadLimit;
92 input.BaseStream.Position = currentPosition;