| java.lang.Object org.relique.jdbc.csv.CsvWriter
CsvWriter | public class CsvWriter (Code) | | This class is a helper class that handles the reading and parsing of data
from a .csv file.
author: Sinisa Milosevic author: Zoran Milakovic |
Constructor Summary | |
public | CsvWriter(String fileName, char separator, String extension, long maxFileSize, String charset, boolean useQuotes, boolean useQuotesEscape) Used with statement. |
CsvWriter | public CsvWriter(String fileName, char separator, String extension, long maxFileSize, String charset, boolean useQuotes, boolean useQuotesEscape) throws java.lang.Exception(Code) | | Used with statement.
Parameters: fileName - Parameters: separator - Parameters: extension - Parameters: maxFileSize - throws: java.lang.Exception - |
close | public void close()(Code) | | Description of the Method
|
getColumn | public String getColumn(int columnIndex)(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 |
setFileName | public void setFileName(String name) throws Exception(Code) | | When use split files, this is used when file name is changed.
Parameters: name - throws: Exception - |
|
|