Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class com.imaginary.sql.msql.MsqlInputStream

java.lang.Object
  |
  +--com.imaginary.sql.msql.MsqlInputStream

public class MsqlInputStream
extends java.lang.Object
The MsqlInputStream class handles communication between the mSQL database and the JDBC implementation.
Last modified $Date: 1999/07/06 05:56:05 $

Version:
$Revision: 1.6 $
Author:
George Reese (borg@imaginary.com)

Constructor Summary
MsqlInputStream(java.io.InputStream in)
          Constructs an MsqlInputStream using an InputStream from a socket connecting the driver to the database.
 
Method Summary
void close()
          Closes the stream.
byte[] read()
          Reads data from the mSQL database as an array of bytes.
java.lang.String readString(java.lang.String encoding)
          Instead of reading data raw, you can read it using the specified encoding. param encoding the encoding to use for the character set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

MsqlInputStream

public MsqlInputStream(java.io.InputStream in)
                throws java.io.IOException
Constructs an MsqlInputStream using an InputStream from a socket connecting the driver to the database.
Parameters:
in - the InputStream representing data form the database
Throws:
java.io.IOException - an error occurred creating a DataInputStream for the InputStream
Method Detail

close

public void close()
          throws java.io.IOException
Closes the stream.
Throws:
java.io.IOException - an error occurred closing the stream

read

public byte[] read()
           throws java.io.IOException
Reads data from the mSQL database as an array of bytes.
Returns:
data from the database as an array of bytes
Throws:
java.io.IOException - an error occured on read

readString

public java.lang.String readString(java.lang.String encoding)
                           throws java.io.IOException
Instead of reading data raw, you can read it using the specified encoding. param encoding the encoding to use for the character set
Returns:
the string from the database
Throws:
java.io.IOException - an error occurred on read

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD