Package quadbase.util
Class StreamResultSet
java.lang.Object
quadbase.util.StreamResultSet
- All Implemented Interfaces:
IResultSet,IRow,IRSMetaData
This class implements a result set on a file of type .dat, .csv
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new StreamResult Object using the specified InputStreamStreamResultSet(InputStream in, String encoding) Create a new StreamResult Object using the specified InputStreamStreamResultSet(InputStream in, String encoding, boolean csv) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the cursorstatic ObjectcreateObject(int dtype, Object elem, StreamTokenizer st) intGets the number of columns in the result set.getColumnName(int col) Gets the name of a column in the result set.intgetColumnType(int col) Gets the data type of a column in the result set.Gets the meta data objectgetObject(int colNo) Returns the data value stored in the specified column of this row.getTableName(int col) booleannext()Advances cursor to next rowstatic intreadLine(StreamTokenizer st, Vector vec, boolean acceptNo)
-
Constructor Details
-
StreamResultSet
Create a new StreamResult Object using the specified InputStream- Throws:
IOException
-
StreamResultSet
Create a new StreamResult Object using the specified InputStream- Throws:
IOException
-
StreamResultSet
- Throws:
IOException
-
-
Method Details
-
next
Description copied from interface:IResultSetAdvances cursor to next row- Specified by:
nextin interfaceIResultSet- Throws:
IOException
-
close
Description copied from interface:IResultSetCloses the cursor- Specified by:
closein interfaceIResultSet- Throws:
IOException
-
getObject
Description copied from interface:IRowReturns the data value stored in the specified column of this row. -
getMetaData
Description copied from interface:IResultSetGets the meta data object- Specified by:
getMetaDatain interfaceIResultSet
-
getColumnCount
public int getColumnCount()Description copied from interface:IRSMetaDataGets the number of columns in the result set.- Specified by:
getColumnCountin interfaceIRSMetaData
-
getColumnName
Description copied from interface:IRSMetaDataGets the name of a column in the result set.- Specified by:
getColumnNamein interfaceIRSMetaData- Returns:
- col the column name
-
getTableName
- Specified by:
getTableNamein interfaceIRSMetaData
-
getColumnType
public int getColumnType(int col) Description copied from interface:IRSMetaDataGets the data type of a column in the result set.- Specified by:
getColumnTypein interfaceIRSMetaData- Parameters:
col- the column index (beginning at 1)- Returns:
- the column SQL data type (as represented in java.sql.Types).
-
readLine
- Throws:
IOException
-
createObject
- Throws:
IOException
-