Package org.relique.jdbc.csv
Class CsvReader
- java.lang.Object
-
- org.relique.io.DataReader
-
- org.relique.jdbc.csv.CsvReader
-
public class CsvReader extends DataReader
-
-
Field Summary
-
Fields inherited from class org.relique.io.DataReader
DEFAULT_COLUMN_SIZE
-
-
Constructor Summary
Constructors Constructor Description CsvReader(CsvRawReader rawReader, int transposedLines, int transposedFieldsToSkip, java.lang.String headerline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.String[]
getColumnNames()
int[]
getColumnSizes()
java.lang.String[]
getColumnTypes()
java.util.Map<java.lang.String,java.lang.Object>
getEnvironment()
java.lang.String
getTableAlias()
boolean
next()
void
setColumnTypes(java.lang.String line)
void
setConverter(StringConverter converter)
-
-
-
Constructor Detail
-
CsvReader
public CsvReader(CsvRawReader rawReader, int transposedLines, int transposedFieldsToSkip, java.lang.String headerline) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-
Method Detail
-
setConverter
public void setConverter(StringConverter converter)
-
next
public boolean next() throws java.sql.SQLException
- Specified by:
next
in classDataReader
- Throws:
java.sql.SQLException
-
getColumnNames
public java.lang.String[] getColumnNames()
- Specified by:
getColumnNames
in classDataReader
-
close
public void close()
- Specified by:
close
in classDataReader
-
getEnvironment
public java.util.Map<java.lang.String,java.lang.Object> getEnvironment() throws java.sql.SQLException
- Specified by:
getEnvironment
in classDataReader
- Throws:
java.sql.SQLException
-
setColumnTypes
public void setColumnTypes(java.lang.String line) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getColumnTypes
public java.lang.String[] getColumnTypes() throws java.sql.SQLException
- Specified by:
getColumnTypes
in classDataReader
- Throws:
java.sql.SQLException
-
getColumnSizes
public int[] getColumnSizes()
- Specified by:
getColumnSizes
in classDataReader
-
getTableAlias
public java.lang.String getTableAlias()
- Specified by:
getTableAlias
in classDataReader
-
-