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.MsqlOutputStream

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

public class MsqlOutputStream
extends java.lang.Object
Represents a stream of data going to the mSQL database.
Last modified $Date: 1999/07/06 05:56:06 $

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

Constructor Summary
MsqlOutputStream(java.io.OutputStream out)
          Constructs a new MsqlOutputStream using the specified OutputStream.
 
Method Summary
void close()
          Closes the output stream.
void flush()
          Flushes the output queue.
void write(byte[] bytes)
          Writes some data out to the mSQL database.
void writeString(java.lang.String str, java.lang.String encoding)
          Writes a string out to the database using the specified encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

MsqlOutputStream

public MsqlOutputStream(java.io.OutputStream out)
                 throws java.io.IOException
Constructs a new MsqlOutputStream using the specified OutputStream.
Parameters:
out - the OutputStream to be used
Throws:
java.io.IOException - an error occurred creating a DataOutputStream
Method Detail

close

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

flush

public void flush()
          throws java.io.IOException
Flushes the output queue.
Throws:
java.io.IOException - an error occurred flushing the stream

write

public void write(byte[] bytes)
          throws java.io.IOException
Writes some data out to the mSQL database.
Parameters:
bytes - an array of bytes to be written to the database
Throws:
java.io.IOException - an error occurred on write

writeString

public void writeString(java.lang.String str,
                        java.lang.String encoding)
                throws java.io.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:
java.io.IOException - an error occurred on write

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