|
OSMQ v2.0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
osmq.io.StringOutputStream
An OutputStream filter that supports writing Strings and ASCII byte arrays to an output stream. To write non-ASCII bytes to a stream, use the PacketOutputStream class.
The corollary StringInputStream is able to read logical Strings and arrays of bytes as they were written.
This class is thread safe.
Constructor Summary | |
StringOutputStream(java.io.OutputStream out)
|
Method Summary | |
void |
println(java.lang.String s)
Writes an integer (size) to the output stream as 4 bytes. |
void |
writeBytes(byte[] value)
|
void |
writeNull()
Writes a null object to the stream which is ignored by the corresponding ReaderStream. |
Methods inherited from class java.io.FilterOutputStream |
close, flush, write, write, write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface osmq.io.WriterStream |
close, flush |
Constructor Detail |
public StringOutputStream(java.io.OutputStream out)
Method Detail |
public void writeNull() throws java.io.IOException
WriterStream
writeNull
in interface WriterStream
java.io.IOException
public void writeBytes(byte[] value) throws java.io.IOException
writeBytes
in interface WriterStream
java.io.IOException
public void println(java.lang.String s) throws java.io.IOException
println
in interface WriterStream
java.io.IOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed
|
(c) 2000 - 2003 MQue Systems All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |