Method Summary |
|
public void | close() Closes and releases all related resources. |
protected void | finalize() |
public String | get(int columnIndex) Returns the current column value for a given column index.
Parameters: columnIndex - The index of the column. |
public String | get(String headerName) Returns the current column value for a given column header name.
Parameters: headerName - The header name of the column. |
public boolean | getCaptureRawRecord() |
public int | getColumnCount() Gets the count of columns found in this record. |
public char | getComment() Gets the character being used as a comment signal. |
public long | getCurrentRecord() Gets the index of the current record. |
public char | getDelimiter() Gets the character being used as the column delimiter. |
public int | getEscapeMode() Gets the current way to escape an occurance of the text qualifier inside
qualified data. |
public String | getHeader(int columnIndex) Returns the column header value for a given column index.
Parameters: columnIndex - The index of the header column being requested. |
public int | getHeaderCount() Gets the count of headers read in by a previous call to
com.csvreader.CsvReader.readHeaders readHeaders() . |
public String[] | getHeaders() Returns the header values as a string array. |
public int | getIndex(String headerName) Gets the corresponding column index for a given column header name.
Parameters: headerName - The header name of the column. |
public String | getRawRecord() |
public char | getRecordDelimiter() |
public boolean | getSafetySwitch() Safety caution to prevent the parser from using large amounts of memory
in the case where parsing settings like file encodings don't end up
matching the actual format of a file. |
public boolean | getSkipEmptyRecords() |
public char | getTextQualifier() Gets the character to use as a text qualifier in the data. |
public boolean | getTrimWhitespace() Gets whether leading and trailing whitespace characters are being trimmed
from non-textqualified column data. |
public boolean | getUseComments() Gets whether comments are being looked for while parsing or not. |
public boolean | getUseTextQualifier() Whether text qualifiers will be used while parsing or not. |
public String[] | getValues() |
public boolean | isQualified(int columnIndex) |
public static CsvReader | parse(String data) Creates a
com.csvreader.CsvReader CsvReader object using a string
of data as the source. Uses ISO-8859-1 as the
java.nio.charset.Charset Charset .
Parameters: data - The String of data to use as the source. |
public boolean | readHeaders() Read the first record of data as column headers. |
public boolean | readRecord() Reads another record. |
public void | setCaptureRawRecord(boolean captureRawRecord) |
public void | setComment(char comment) Sets the character to use as a comment signal. |
public void | setDelimiter(char delimiter) Sets the character to use as the column delimiter. |
public void | setEscapeMode(int escapeMode) Sets the current way to escape an occurance of the text qualifier inside
qualified data. |
public void | setHeaders(String[] headers) |
public void | setRecordDelimiter(char recordDelimiter) Sets the character to use as the record delimiter.
Parameters: recordDelimiter - The character to use as the record delimiter. |
public void | setSafetySwitch(boolean safetySwitch) Safety caution to prevent the parser from using large amounts of memory
in the case where parsing settings like file encodings don't end up
matching the actual format of a file. |
public void | setSkipEmptyRecords(boolean skipEmptyRecords) |
public void | setTextQualifier(char textQualifier) Sets the character to use as a text qualifier in the data. |
public void | setTrimWhitespace(boolean trimWhitespace) Sets whether leading and trailing whitespace characters should be trimmed
from non-textqualified column data or not. |
public void | setUseComments(boolean useComments) Sets whether comments are being looked for while parsing or not. |
public void | setUseTextQualifier(boolean useTextQualifier) Sets whether text qualifiers will be used while parsing or not. |
public boolean | skipLine() Skips the next line of data using the standard end of line characters and
does not do any column delimited parsing. |
public boolean | skipRecord() Skips the next record of data by parsing each column. Does not
increment
com.csvreader.CsvReader.getCurrentRecord getCurrentRecord() . |