EspressReport 6.6

quadbase.reportdesigner.util
Class StreamResultSet

java.lang.Object
  extended by quadbase.reportdesigner.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


Field Summary
protected static int FRANCE
           
protected  java.io.InputStream inStream
           
protected static int REGION
           
protected  IResultSet rs
           
protected static int US
           
 
Constructor Summary
StreamResultSet()
           
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()
          For internal use
static java.lang.Object createObject(int dtype, java.lang.Object elem, java.io.StreamTokenizer st)
           
 int getColumnCount()
          Get total number of columns
 java.lang.String getColumnName(int col)
          Get name of specified column
 int getColumnType(int col)
          Get type of specified column
 IRSMetaData getMetaData()
          Get original data
 java.lang.Object getObject(int colNo)
          Get object of specified column number
 java.lang.String getTableName(int col)
           
 boolean next()
          For internal use
static int readLine(java.io.StreamTokenizer st, java.util.Vector vec, boolean acceptNo)
          For internal use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

US

protected static final int US
See Also:
Constant Field Values

FRANCE

protected static final int FRANCE
See Also:
Constant Field Values

REGION

protected static final int REGION
See Also:
Constant Field Values

inStream

protected java.io.InputStream inStream

rs

protected IResultSet rs
Constructor Detail

StreamResultSet

public StreamResultSet()

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
For internal use

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

close

public void close()
           throws java.io.IOException
For internal use

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

getObject

public java.lang.Object getObject(int colNo)
Get object of specified column number

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()
Get original data

Specified by:
getMetaData in interface IResultSet

getColumnCount

public int getColumnCount()
Get total number of columns

Specified by:
getColumnCount in interface IRSMetaData

getColumnName

public java.lang.String getColumnName(int col)
Get name of specified column

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

getTableName

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

getColumnType

public int getColumnType(int col)
Get type of specified column

Specified by:
getColumnType in interface IRSMetaData
Returns:
the column SQL data type (as represented in java.sql.Types).
See Also:
Types

readLine

public static int readLine(java.io.StreamTokenizer st,
                           java.util.Vector vec,
                           boolean acceptNo)
                    throws java.io.IOException
For internal use

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