C# Класс EnterpriseWebLibrary.IO.TabDelimitedFileWriter

Helps in writing data to a file in tab-delimited format.
Наследование: TabularDataFileWriter
Показать файл Открыть проект

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

Метод Описание
AddValueToLine ( object val ) : void

Adds the given value as a column on the current line. Value may be null. If it is not null, val.ToString() determines what is added to the line.

AddValuesToLine ( ) : void

Add several values to the current line. Collection can be empty but not null. Values may be null. If a value is not null, a call to ToString determines what text is added to the line. This method may be called repeatedly to add several sets of values to the same line. The line is only advanced when WriteCurrentLineToFile is called.

ClearLine ( ) : void

Clears the current line. This does not affect the file at all, it simply undoes any calls to AddValueToLine made since the last WriteCurrentLineToFile call.

WriteCurrentLineToFile ( TextWriter writer ) : void

Writes the current line to the file using the given open text writer. This clears the current line after writing.

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

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

Adds the given value as a column on the current line. Value may be null. If it is not null, val.ToString() determines what is added to the line.
public AddValueToLine ( object val ) : void
val object
Результат void

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

Add several values to the current line. Collection can be empty but not null. Values may be null. If a value is not null, a call to ToString determines what text is added to the line. This method may be called repeatedly to add several sets of values to the same line. The line is only advanced when WriteCurrentLineToFile is called.
public AddValuesToLine ( ) : void
Результат void

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

Clears the current line. This does not affect the file at all, it simply undoes any calls to AddValueToLine made since the last WriteCurrentLineToFile call.
public ClearLine ( ) : void
Результат void

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

Writes the current line to the file using the given open text writer. This clears the current line after writing.
public WriteCurrentLineToFile ( TextWriter writer ) : void
writer System.IO.TextWriter
Результат void