Method | Description | |
---|---|---|
Close ( ) : void |
Close the file.
|
|
Get ( String column ) : String |
Get the column by its string name, as a string. This will only work if column headers were defined that have string names.
|
|
Get ( int i ) : String |
Get the specified column as a string.
|
|
GetCount ( ) : int |
Get the column count.
|
|
GetDate ( String column ) : System.DateTime |
Read the specified column as a date.
|
|
GetDate ( int column ) : System.DateTime |
Read the specified column as a date.
|
|
GetDouble ( String column ) : double |
Get the specified column as a double.
|
|
GetDouble ( int column ) : double |
Get the specified column as a double.
|
|
GetInt ( String col ) : int |
Get an integer that has the specified name.
|
|
GetTime ( String column ) : System.DateTime |
Read the specified column as a time.
|
|
GetTime ( int column ) : System.DateTime |
Read the specified column as a time.
|
|
HasMissing ( ) : bool |
Check to see if there are any missing values on the current row.
|
|
Next ( ) : bool |
Read the next line.
|
|
ParseDate ( String when, String dateFormat ) : System.DateTime |
Parse a date using the specified format.
|
|
ReadCSV ( Stream stream, bool headers, |
Construct a CSV reader from an input stream. The format parameter specifies the separator character to use, as well as the number format.
|
|
ReadCSV ( Stream istream, bool headers, char delim ) : System |
Construct a CSV reader from an input stream.
|
|
ReadCSV ( String filename, bool headers, |
Construct a CSV reader from a filename. Allows a delimiter character to be specified. Numbers will be parsed using the current locale.
|
|
ReadCSV ( String filename, bool headers, char delim ) : System |
Construct a CSV reader from a filename.
|
Method | Description | |
---|---|---|
Begin ( bool headers, |
Read the headers.
|
|
GetLong ( int col ) : long | ||
InitData ( string line ) : void |
Count the columns and create a an array to hold them.
|
|
Parse ( string line ) : IList |
||
ParseCharSep ( string line ) : IList |
Parse the line into a list of values.
|
|
ParseSpaceSep ( String line ) : List |
Parse a line with space separators.
|
public Get ( String column ) : String | ||
column | String | The column name. |
return | String |
public Get ( int i ) : String | ||
i | int | The column index, starting at zero. |
return | String |
public GetDate ( String column ) : System.DateTime | ||
column | String | The specified column. |
return | System.DateTime |
public GetDate ( int column ) : System.DateTime | ||
column | int | The specified column. |
return | System.DateTime |
public GetDouble ( String column ) : double | ||
column | String | The column to read. |
return | double |
public GetDouble ( int column ) : double | ||
column | int | The column to read. |
return | double |
public GetInt ( String col ) : int | ||
col | String | The column name to read. |
return | int |
public GetTime ( String column ) : System.DateTime | ||
column | String | The specified column. |
return | System.DateTime |
public GetTime ( int column ) : System.DateTime | ||
column | int | The specified column. |
return | System.DateTime |
public static ParseDate ( String when, String dateFormat ) : System.DateTime | ||
when | String | A string that contains a date in the specified format. |
dateFormat | String | The date format. |
return | System.DateTime |
public ReadCSV ( Stream stream, bool headers, |
||
stream | Stream | The Stream to read from. |
headers | bool | Are headers present? |
format | What is the CSV format. | |
return | System |
public ReadCSV ( Stream istream, bool headers, char delim ) : System | ||
istream | Stream | The InputStream to read from. |
headers | bool | Are headers present? |
delim | char | What is the delimiter. |
return | System |
public ReadCSV ( String filename, bool headers, |
||
filename | String | The filename. |
headers | bool | The headers. |
format | The delimiter. | |
return | System |
public ReadCSV ( String filename, bool headers, char delim ) : System | ||
filename | String | The filename. |
headers | bool | The headers. |
delim | char | The delimiter. |
return | System |