| java.lang.Object org.relique.jdbc.csv.CsvReader
CsvReader | public class CsvReader (Code) | | This class is a helper class that handles the reading and parsing of data
from a .csv file.
author: Zoran Milakovic |
Constructor Summary | |
public | CsvReader(String fileName, char separator, boolean suppressHeaders, String charset, String extension, String lineBreakEscape, String carriageReturnEscape, boolean trimString) |
CsvReader | public CsvReader(String fileName, char separator, boolean suppressHeaders, String charset, String extension, String lineBreakEscape, String carriageReturnEscape, boolean trimString) throws java.lang.Exception(Code) | | Parameters: fileName - Parameters: separator - Parameters: suppressHeaders - Parameters: charset - Parameters: extension - throws: java.lang.Exception - |
close | public void close()(Code) | | Description of the Method
|
getColumn | public String getColumn(int columnIndex) throws SQLException(Code) | | Get the value of the column at the specified index.
Parameters: columnIndex - Description of Parameter The column value |
getColumn | public String getColumn(String columnName) throws SQLException(Code) | | Get value from column at specified name.
If the column name is not found, throw an error.
Parameters: columnName - Description of Parameter The column value exception: SQLException - Description of Exception |
getColumnNames | public String[] getColumnNames()(Code) | | Gets the columnNames attribute of the CsvReader object
The columnNames value |
getColumnTypes | public Map getColumnTypes()(Code) | | array with column types |
next | public boolean next() throws SQLException(Code) | | Description of the Method
Description of the Returned Value exception: SQLException - Description of Exception |
parseCsvLineAsHeader | protected String[] parseCsvLineAsHeader(String line) throws SQLException(Code) | | Parse csv line, whithout columnTypes.
Parameters: line - array with values or column names. throws: SQLException - |
|
|