C# 클래스 Lucene.Net.Analysis.Util.RollingCharBuffer

Acts like a forever growing char[] as you read characters into it from the provided reader, but internally it uses a circular buffer to only hold the characters that haven't been freed yet. This is like a PushbackReader, except you don't have to specify up-front the max size of the buffer, but you do have to periodically call #freeBefore.
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
FreeBefore ( int pos ) : void

Call this to notify us that no chars before this absolute position are needed anymore.

Get ( int posStart, int length ) : char[]
Get ( int pos ) : int
Reset ( TextReader reader ) : void

Clear array and switch to new reader.

비공개 메소드들

메소드 설명
GetIndex ( int pos ) : int
InBounds ( int pos ) : bool

메소드 상세

FreeBefore() 공개 메소드

Call this to notify us that no chars before this absolute position are needed anymore.
public FreeBefore ( int pos ) : void
pos int
리턴 void

Get() 공개 메소드

public Get ( int posStart, int length ) : char[]
posStart int
length int
리턴 char[]

Get() 공개 메소드

public Get ( int pos ) : int
pos int
리턴 int

Reset() 공개 메소드

Clear array and switch to new reader.
public Reset ( TextReader reader ) : void
reader System.IO.TextReader
리턴 void