C# Класс NSoft.NFramework.Nini.Ini.IniReader

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

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

Метод Описание
Close ( ) : void
Dispose ( ) : void
GetAssignDelimiters ( ) : char[]
GetCommentDelimiters ( ) : char[]
IniReader ( Stream stream ) : System
IniReader ( TextReader reader ) : System
IniReader ( string filePath ) : System
MoveToNextKey ( ) : bool
MoveToNextSection ( ) : bool
Read ( ) : bool
SetAssignDelimiters ( char delimiters ) : void
SetCommentDelimiters ( char delimiters ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
ConsumeToEnd ( ) : void

Consumes all data until the end of a line.

EndOfLine ( int ch ) : bool

Returns true if an end of line is found. End of line includes both an end of line or end of file.

HasCharacter ( char characters, int ch ) : bool

Returns true if the character is found in the given array.

IsAssign ( int ch ) : bool

Returns true if character is an assign character.

IsComment ( int ch ) : bool

Returns true if a comment character is found.

IsWhitespace ( int ch ) : bool

Returns true if a value is whitespace.

PeekChar ( ) : int

Returns the next upcoming character from the stream.

ReadChar ( ) : int

Returns and consumes the next character from the stream.

ReadComment ( ) : void

Reads a comment. Must start after the comment delimiter.

ReadKey ( ) : void

Reads a key.

ReadKeyValue ( ) : void

Reads the value of a key.

ReadNext ( ) : bool

Reads the next INI line item.

ReadSection ( ) : void

Reads an INI section.

RemoveTrailingWhitespace ( StringBuilder builder ) : void

Removes trailing whitespace from a StringBuilder.

Reset ( ) : void

Resets all of the current INI line data.

SearchForComment ( ) : void

Looks for a comment.

SkipWhitespace ( ) : void

Skips all whitespace.

Описание методов

Close() публичный Метод

public Close ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetAssignDelimiters() публичный Метод

public GetAssignDelimiters ( ) : char[]
Результат char[]

GetCommentDelimiters() публичный Метод

public GetCommentDelimiters ( ) : char[]
Результат char[]

IniReader() публичный Метод

public IniReader ( Stream stream ) : System
stream Stream
Результат System

IniReader() публичный Метод

public IniReader ( TextReader reader ) : System
reader TextReader
Результат System

IniReader() публичный Метод

public IniReader ( string filePath ) : System
filePath string
Результат System

MoveToNextKey() публичный Метод

public MoveToNextKey ( ) : bool
Результат bool

MoveToNextSection() публичный Метод

public MoveToNextSection ( ) : bool
Результат bool

Read() публичный Метод

public Read ( ) : bool
Результат bool

SetAssignDelimiters() публичный Метод

public SetAssignDelimiters ( char delimiters ) : void
delimiters char
Результат void

SetCommentDelimiters() публичный Метод

public SetCommentDelimiters ( char delimiters ) : void
delimiters char
Результат void