|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.flatfile.util.FlatFileDataReader
public class FlatFileDataReader
FlatFileDataSourceReader is a utility class that help read and parse the raw data from flat file
Field Summary | |
---|---|
static int |
MAX_ROWS_PER_FETCH
|
Constructor Summary | |
---|---|
FlatFileDataReader(org.eclipse.datatools.connectivity.oda.flatfile.Connection connection,
java.lang.String currentTableName,
int statementMaxRows,
IResultSetMetaData rsmd,
org.eclipse.datatools.connectivity.oda.flatfile.ResultSetMetaDataHelper rsmdHelper)
Constructor |
Method Summary | |
---|---|
void |
clearBufferedReader()
|
void |
finalize()
|
int |
getColumnCount()
|
java.lang.String[] |
getColumnNameArray(java.util.List<java.lang.String> line)
Extract the column name from the line into the format of string array |
org.eclipse.datatools.connectivity.oda.flatfile.ResourceInputStream |
getInputStream()
|
int |
getMaxRowsToRead(int resultSetMaxRows)
|
java.lang.String[][] |
getSourceData()
|
static java.lang.String[] |
getStringArrayFromList(java.util.List<java.lang.String> list)
Put the contants of the list into a string array |
boolean |
getTrailNullColumns()
|
static boolean |
isEmptyRow(java.util.List<java.lang.String> line)
See if this row is empty or not |
java.util.List<java.lang.String> |
readLine()
Read a row from the source data |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_ROWS_PER_FETCH
Constructor Detail |
---|
public FlatFileDataReader(org.eclipse.datatools.connectivity.oda.flatfile.Connection connection, java.lang.String currentTableName, int statementMaxRows, IResultSetMetaData rsmd, org.eclipse.datatools.connectivity.oda.flatfile.ResultSetMetaDataHelper rsmdHelper) throws OdaException
connProperties
- Connection propertiescurrentTableName
- The current table name of this connectionstatementMaxRows
- The max number of rows specified in the queryrsmd
- ResultSet meta-datarsmdHelper
- ResultSet meta-data helper
OdaException
Method Detail |
---|
public boolean getTrailNullColumns()
public java.lang.String[][] getSourceData() throws OdaException
OdaException
public java.util.List<java.lang.String> readLine() throws OdaException
OdaException
java.io.IOException
public int getMaxRowsToRead(int resultSetMaxRows)
resultSetMaxRows
-
public void clearBufferedReader()
public void finalize()
finalize
in class java.lang.Object
public int getColumnCount() throws OdaException
connProperties
- tableName
-
OdaException
public org.eclipse.datatools.connectivity.oda.flatfile.ResourceInputStream getInputStream() throws OdaException
OdaException
public static boolean isEmptyRow(java.util.List<java.lang.String> line) throws OdaException
row
-
OdaException
public java.lang.String[] getColumnNameArray(java.util.List<java.lang.String> line) throws OdaException
line
- isFirstLine
-
OdaException
public static java.lang.String[] getStringArrayFromList(java.util.List<java.lang.String> list)
list
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |