C# 클래스 bsharptree.example.simpleindex.analysis.Utf8CharScanner

파일 보기 프로젝트 열기: thoward/bsharptree 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
Read ( ) : CharLocation

Read a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached.

Subclasses that intend to support efficient single-character input should override this method.

Read ( char buffer, int offset, int length ) : int

Read characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached.

Reset ( ) : void
Skip ( long charsToSkip ) : long

Skip characters. This method will block until some characters are available, an I/O error occurs, or the end of the stream is reached.

Utf8CharScanner ( Stream inputStream ) : System.IO
Utf8CharScanner ( Stream inputStream, byte buffer ) : System.IO
Utf8CharScanner ( Stream inputStream, int size ) : System.IO

비공개 메소드들

메소드 설명
GetCurrentPosition ( int index ) : long
ReadFourByteChar ( int index, int byteZero ) : char?
ReadThreeByteChar ( int index, int byteZero ) : char?
ReadTwoByteChar ( int index, int byteZero ) : char?
ThrowExpectedByteException ( int position, int count ) : void

Throws an exception for expected byte.

ThrowInvalidByteException ( int position, int count, int c ) : void

Throws an exception for invalid byte.

ThrowInvalidSurrogateException ( int uuuuu ) : void

Throws an exception for invalid surrogate bits.

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Read() 공개 메소드

Read a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached.

Subclasses that intend to support efficient single-character input should override this method.

public Read ( ) : CharLocation
리턴 CharLocation

Read() 공개 메소드

Read characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached.
public Read ( char buffer, int offset, int length ) : int
buffer char Destination buffer
offset int Offset at which to start storing characters
length int Maximum number of characters to read
리턴 int

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Skip() 공개 메소드

Skip characters. This method will block until some characters are available, an I/O error occurs, or the end of the stream is reached.
public Skip ( long charsToSkip ) : long
charsToSkip long The number of characters to skip
리턴 long

Utf8CharScanner() 공개 메소드

public Utf8CharScanner ( Stream inputStream ) : System.IO
inputStream System.IO.Stream
리턴 System.IO

Utf8CharScanner() 공개 메소드

public Utf8CharScanner ( Stream inputStream, byte buffer ) : System.IO
inputStream System.IO.Stream
buffer byte
리턴 System.IO

Utf8CharScanner() 공개 메소드

public Utf8CharScanner ( Stream inputStream, int size ) : System.IO
inputStream System.IO.Stream
size int
리턴 System.IO