EspressReport 6.6

quadbase.util
Class StreamResultSet

java.lang.Object
  extended by quadbase.util.StreamResultSet
All Implemented Interfaces:
IResultSet, IRow, IRSMetaData

public class StreamResultSet
extends java.lang.Object
implements IResultSet, IRSMetaData

This class implements a result set on a file of type .dat


Constructor Summary
StreamResultSet(java.io.InputStream in)
          Create a new StreamResult Object using the specified InputStream
StreamResultSet(java.io.InputStream in, java.lang.String encoding)
          Create a new StreamResult Object using the specified InputStream
 
Method Summary
 void close()
          Closes the cursor
static java.lang.Object createObject(int dtype, java.lang.Object elem, java.io.StreamTokenizer st)
           
 int getColumnCount()
          Gets the number of columns in the result set.
 java.lang.String getColumnName(int col)
          Gets the name of a column in the result set.
 int getColumnType(int col)
          Gets the data type of a column in the result set.
 IRSMetaData getMetaData()
          Gets the meta data object
 java.lang.Object getObject(int colNo)
          Returns the data value stored in the specified column of this row.
 java.lang.String getTableName(int col)
           
 boolean next()
          Advances cursor to next row
static int readLine(java.io.StreamTokenizer st, java.util.Vector vec, boolean acceptNo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamResultSet

public StreamResultSet(java.io.InputStream in)
                throws java.io.IOException
Create a new StreamResult Object using the specified InputStream

Throws:
java.io.IOException

StreamResultSet

public StreamResultSet(java.io.InputStream in,
                       java.lang.String encoding)
                throws java.io.IOException
Create a new StreamResult Object using the specified InputStream

Throws:
java.io.IOException
Method Detail

next

public boolean next()
             throws java.io.IOException
Description copied from interface: IResultSet
Advances cursor to next row

Specified by:
next in interface IResultSet
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Description copied from interface: IResultSet
Closes the cursor

Specified by:
close in interface IResultSet
Throws:
java.io.IOException

getObject

public java.lang.Object getObject(int colNo)
Description copied from interface: IRow
Returns the data value stored in the specified column of this row.

Specified by:
getObject in interface IRow
Parameters:
colNo - The column number for the field, beginning with 1.
Returns:
The data value stored in that column field.

getMetaData

public IRSMetaData getMetaData()
Description copied from interface: IResultSet
Gets the meta data object

Specified by:
getMetaData in interface IResultSet

getColumnCount

public int getColumnCount()
Description copied from interface: IRSMetaData
Gets the number of columns in the result set.

Specified by:
getColumnCount in interface IRSMetaData

getColumnName

public java.lang.String getColumnName(int col)
Description copied from interface: IRSMetaData
Gets the name of a column in the result set.

Specified by:
getColumnName in interface IRSMetaData
Returns:
col the column name

getTableName

public java.lang.String getTableName(int col)
Specified by:
getTableName in interface IRSMetaData

getColumnType

public int getColumnType(int col)
Description copied from interface: IRSMetaData
Gets the data type of a column in the result set.

Specified by:
getColumnType in interface IRSMetaData
Parameters:
col - the column index (beginning at 1)
Returns:
the column SQL data type (as represented in java.sql.Types).

readLine

public static int readLine(java.io.StreamTokenizer st,
                           java.util.Vector vec,
                           boolean acceptNo)
                    throws java.io.IOException
Throws:
java.io.IOException

createObject

public static java.lang.Object createObject(int dtype,
                                            java.lang.Object elem,
                                            java.io.StreamTokenizer st)
                                     throws java.io.IOException
Throws:
java.io.IOException

EspressReport 6.6