프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_filename | string | ||
_line | StringBuilder | ||
_outputStream | |||
_splitChars | char[] |
메소드 | 설명 | |
---|---|---|
Close ( ) : bool |
closes the underlying stream
|
|
CommaSeparatedValueWriter ( ) : System |
construct a new blank writer (any writes will throw exceptions if you don't set a stream or a file!)
|
|
CommaSeparatedValueWriter ( string filename ) : System |
construct a new writer to append to the given file
|
|
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
|
|
QuoteAndEscape ( string input ) : string |
If input contains ,s or newlines, escapes all "s and brackets in "s and returns the result, otherwise returns input unmodified
|
|
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 :)
|
|
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 CommaSeparatedValueWriter ( string filename ) : System | ||
filename | string | |
리턴 | System |
public CreateTable ( string tablename, IEnumerable |
||
tablename | string | |
columns | IEnumerable |
|
리턴 | bool |
public QuoteAndEscape ( string input ) : string | ||
input | string | The string to escape and quote (if necessary) |
리턴 | string |