Property | Type | Description | |
---|---|---|---|
_filename | string | ||
_line | StringBuilder | ||
_outputStream | |||
_splitChars | char[] |
Method | Description | |
---|---|---|
Close ( ) : bool |
closes the underlying stream
|
|
CreateTable ( string tablename, IEnumerable |
simply appends the column row. call this first! (you would have to call this first anyway.)
|
|
Flush ( ) : bool |
flushes the stream
|
|
MakeColumnLine ( List |
allows you to use any functional writable stream build a column line (first line in a delim-separated value file)
|
|
MakeFormatLine ( List |
generate a String.Format line based on our column count
|
|
SetTablename ( string tableName ) : void |
changes the currently active table, does nothing for this type of file, since it only contains one table.
|
|
SetWriteFile ( string filename ) : bool |
specify an output file for APPENDing to, and sharing reading. (if you don't like it, send in your own filestream :)
|
|
TabSeparatedValueWriter ( ) : System |
construct a new blank writer (any writes will throw exceptions if you don't set a stream or a file!)
|
|
TabSeparatedValueWriter ( string filename ) : System |
construct a new writer to append to the given file
|
|
WriteLine ( IEnumerable |
Make sure you have a value for every column! This is really intentionally not thread safe, do not share this class across threads. really, don't write one of these files across multiple threads at the same time.
|
|
WriteLine ( string line ) : bool |
Write a line directly to our output
|
public CreateTable ( string tablename, IEnumerable |
||
tablename | string | |
columns | IEnumerable |
|
return | bool |
public MakeColumnLine ( List |
||
columns | List |
|
return | string |
public MakeFormatLine ( List |
||
columns | List |
|
return | string |
public SetTablename ( string tableName ) : void | ||
tableName | string | |
return | void |
public SetWriteFile ( string filename ) : bool | ||
filename | string | |
return | bool |
public TabSeparatedValueWriter ( string filename ) : System | ||
filename | string | |
return | System |
public WriteLine ( IEnumerable |
||
values | IEnumerable |
|
return | bool |
protected StreamWriter,System.IO _outputStream | ||
return |