public class CsvRawReader extends Object
Constructor and Description |
---|
CsvRawReader(LineNumberReader in,
String tableName,
String tableAlias,
String separator,
boolean suppressHeaders,
boolean isHeaderFixedWidth,
Character quoteChar,
String comment,
String headerLine,
boolean trimHeaders,
boolean trimValues,
int skipLeadingLines,
boolean ignoreUnparseableLines,
String missingValue,
boolean defectiveHeaders,
int skipLeadingDataLines,
String quoteStyle,
ArrayList<int[]> fixedWidthColumns) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String[] |
getColumnNames()
Gets the columnNames attribute of the CsvReader object.
|
int[] |
getColumnSizes() |
String |
getField(int columnIndex)
Get the value of the column at the specified index, 0 based.
|
String[] |
getFieldValues() |
int |
getLineNumber() |
protected String |
getNextDataLine() |
String |
getTableAlias() |
String |
getTableName() |
boolean |
next() |
protected String[] |
parseLine(String line,
boolean trimValues) |
public CsvRawReader(LineNumberReader in, String tableName, String tableAlias, String separator, boolean suppressHeaders, boolean isHeaderFixedWidth, Character quoteChar, String comment, String headerLine, boolean trimHeaders, boolean trimValues, int skipLeadingLines, boolean ignoreUnparseableLines, String missingValue, boolean defectiveHeaders, int skipLeadingDataLines, String quoteStyle, ArrayList<int[]> fixedWidthColumns) throws IOException, SQLException
IOException
SQLException
public boolean next() throws SQLException
SQLException
public void close()
protected String getNextDataLine() throws IOException
IOException
- if reading next line fails.public int getLineNumber()
public String[] getColumnNames()
public int[] getColumnSizes()
public String getTableName()
public String getTableAlias()
public String[] getFieldValues()
public String getField(int columnIndex)
columnIndex
- Description of Parameter.protected String[] parseLine(String line, boolean trimValues) throws SQLException
SQLException
Copyright © 2019. All rights reserved.