C# Класс bsharptree.example.simpleindex.analysis.Utf8CharScanner

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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