All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.imaginary.sql.msql.MsqlInputStream

com.imaginary.sql.msql.MsqlInputStream

public class MsqlInputStream
The MsqlInputStream class handles communication between the mSQL database and the JDBC implementation.
Last modified $Date: 1999/07/09 23:16:30 $

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

Constructor Index

 o MsqlInputStream(InputStream)
Constructs an MsqlInputStream using an InputStream from a socket connecting the driver to the database.

Method Index

 o close()
Closes the stream.
 o read()
Reads data from the mSQL database as an array of bytes.
 o readString(String)
Instead of reading data raw, you can read it using the specified encoding.

Constructors

 o MsqlInputStream
 public MsqlInputStream(InputStream in) throws 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: IOException
an error occurred creating a DataInputStream for the InputStream

Methods

 o close
 public void close() throws IOException
Closes the stream.

Throws: IOException
an error occurred closing the stream
 o read
 public byte[] read() throws IOException
Reads data from the mSQL database as an array of bytes.

Returns:
data from the database as an array of bytes
Throws: IOException
an error occured on read
 o readString
 public String readString(String encoding) throws 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: IOException
an error occurred on read

All Packages  Class Hierarchy  This Package  Previous  Next  Index