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)

Constructor Index

 o MsqlOutputStream(OutputStream)
Constructs a new MsqlOutputStream using the specified OutputStream.

Method Index

 o close()
Closes the output stream.
 o flush()
Flushes the output queue.
 o write(byte[])
Writes some data out to the mSQL database.
 o writeString(String, String)
Writes a string out to the database using the specified encoding.

Constructors

 o 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

Methods

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

Throws: IOException
an error occurred on close
 o flush
 public void flush() throws IOException
Flushes the output queue.

Throws: IOException
an error occurred flushing the stream
 o 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
 o 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