All Packages Class Hierarchy This Package Previous Next Index
Class com.imaginary.sql.msql.MsqlOutputStream
com.imaginary.sql.msql.MsqlOutputStream
- public class MsqlOutputStream
Represents a stream of data going to the mSQL database.
Last modified $Date: 1999/07/09 23:16:31 $
- Version:
- $Revision: 1.1.2.1.2.2 $
- Author:
- George Reese (borg@imaginary.com)
-
MsqlOutputStream(OutputStream)
- Constructs a new MsqlOutputStream using the specified OutputStream.
-
close()
- Closes the output stream.
-
flush()
- Flushes the output queue.
-
write(byte[])
- Writes some data out to the mSQL database.
-
writeString(String, String)
- Writes a string out to the database using the specified
encoding.
MsqlOutputStream
public MsqlOutputStream(OutputStream out) throws IOException
- Constructs a new MsqlOutputStream using the specified OutputStream.
- Parameters:
- out - the OutputStream to be used
- Throws: IOException
- an error occurred creating a
DataOutputStream
close
public void close() throws IOException
- Closes the output stream.
- Throws: IOException
- an error occurred on close
flush
public void flush() throws IOException
- Flushes the output queue.
- Throws: IOException
- an error occurred flushing the stream
write
public void write(byte bytes[]) throws IOException
- Writes some data out to the mSQL database.
- Parameters:
- bytes - an array of bytes to be written to the database
- Throws: IOException
- an error occurred on write
writeString
public void writeString(String str,
String encoding) throws IOException
- Writes a string out to the database using the specified
encoding.
- Parameters:
- str - the string to be written
- encoding - the encoding for the database
- Throws: IOException
- an error occurred on write
All Packages Class Hierarchy This Package Previous Next Index