Package quadbase.reportdesigner.util
Class StreamResultSet
java.lang.Object
quadbase.reportdesigner.util.StreamResultSet
- All Implemented Interfaces:
IResultSet,IRow,IRSMetaData
This class implements a result set on a file of type .dat, .csv
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected InputStreamprotected static final intprotected IResultSetprotected static final int -
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()For internal usestatic ObjectcreateObject(int dtype, Object elem, StreamTokenizer st) intGet total number of columnsgetColumnName(int col) Get name of specified columnintgetColumnType(int col) Get type of specified columnGet original datagetObject(int colNo) Get object of specified column numbergetTableName(int col) booleannext()For internal usestatic intreadLine(StreamTokenizer st, Vector vec, boolean acceptNo) For internal use
-
Field Details
-
US
protected static final int US- See Also:
-
FRANCE
protected static final int FRANCE- See Also:
-
REGION
protected static final int REGION- See Also:
-
inStream
-
rs
-
-
Constructor Details
-
StreamResultSet
public StreamResultSet() -
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
For internal use- Specified by:
nextin interfaceIResultSet- Throws:
IOException
-
close
For internal use- Specified by:
closein interfaceIResultSet- Throws:
IOException
-
getObject
Get object of specified column number -
getMetaData
Get original data- Specified by:
getMetaDatain interfaceIResultSet
-
getColumnCount
public int getColumnCount()Get total number of columns- Specified by:
getColumnCountin interfaceIRSMetaData
-
getColumnName
Get name of specified column- Specified by:
getColumnNamein interfaceIRSMetaData- Returns:
- the column name
-
getTableName
- Specified by:
getTableNamein interfaceIRSMetaData
-
getColumnType
public int getColumnType(int col) Get type of specified column- Specified by:
getColumnTypein interfaceIRSMetaData- Returns:
- the column SQL data type (as represented in java.sql.Types).
- See Also:
-
readLine
For internal use- Throws:
IOException
-
createObject
- Throws:
IOException
-