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)
-
MsqlInputStream(InputStream)
- Constructs an MsqlInputStream using an InputStream from
a socket connecting the driver to the database.
-
close()
- Closes the stream.
-
read()
- Reads data from the mSQL database as an array of bytes.
-
readString(String)
- Instead of reading data raw, you can read it using the specified
encoding.
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
close
public void close() throws IOException
- Closes the stream.
- Throws: IOException
- an error occurred closing the stream
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
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