| Modifier and Type | Field and Description |
|---|---|
| private final ObjectOutputStream |
| Access | Constructor and Description |
|---|---|
| public | ObjectOutputStreamMarshaller(final ObjectOutputStream
the object stream to wrap oos)Construct a new instance which wraps the given stream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearClassCache()
Implements org. |
| public void | clearInstanceCache()
Implements org. |
| public void | |
| public void | |
| public void | |
| public void | start(final ByteOutput
the new stream newOutput)Implements org. |
| public void | write(final int
the byte val)Implements java. |
| public void | write(final byte[]
the data to be written buf)Implements java. |
| public void | write(final byte[]
the data to be written buf, final int the start offset in the data off, final int the number of bytes that are written len)Implements java. |
| public void | writeBoolean(final boolean
the boolean to be written. val)Implements java. boolean value to this output stream.
|
| public void | writeByte(final int
the byte value to be written. val)Implements java. v.
|
| public void | writeBytes(final String
the string of bytes to be written. str)Implements java. |
| public void | writeChar(final int
the val)char value to be written.Implements java. char value, which
is comprised of two bytes, to the
output stream.
|
| public void | writeChars(final String
the string value to be written. str)Implements java. s,
to the output stream, in order,
two bytes per character.
|
| public void | writeDouble(final double
the val)double value to be written.Implements java. double value,
which is comprised of eight bytes, to the output stream.
|
| public void | writeFloat(final float
the val)float value to be written.Implements java. float value,
which is comprised of four bytes, to the output stream.
|
| public void | writeInt(final int
the val)int value to be written.Implements java. int value, which is
comprised of four bytes, to the output stream.
|
| public void | writeLong(final long
the val)long value to be written.Implements java. long value, which is
comprised of eight bytes, to the output stream.
|
| public void | writeObject(final Object
the object to be written obj)Implements java. |
| public void | writeObjectUnshared(final Object
the object to be written obj)Implements org. |
| public void | writeShort(final int
the val)short value to be written.Implements java. |
| public void | writeUTF(final String
the string value to be written. str)Implements java. s.
|
| oos | back to summary |
|---|---|
| private final ObjectOutputStream oos | |
| ObjectOutputStreamMarshaller | back to summary |
|---|---|
| public ObjectOutputStreamMarshaller(final ObjectOutputStream oos) Construct a new instance which wraps the given stream.
| |
| clearClassCache | back to summary |
|---|---|
| public void clearClassCache() throws IOException Implements org. Doc from org. Discard the class cache. Implicitly also discards the instance cache.
| |
| clearInstanceCache | back to summary |
|---|---|
| public void clearInstanceCache() throws IOException Implements org. Doc from org. Discard the instance cache. May also discard the class cache in implementations that do not support separated class and instance caches.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes the stream. This method must be called to release any resources associated with the stream.
| |
| finish | back to summary |
|---|---|
| public void finish() throws IOException Implements org. Doc from org. Finish marshalling to a stream. Any transient class or instance cache is discarded. The stream is released.
No further marshalling may be done until the
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements java. Doc from java. Flushes the stream. This will write any buffered output bytes.
| |
| start | back to summary |
|---|---|
| public void start(final ByteOutput newOutput) throws IOException Implements org. Doc from org. Begin marshalling to a stream.
| |
| write | back to summary |
|---|---|
| public void write(final int val) throws IOException Implements java. Doc from java. Writes a byte. This method will block until the byte is actually written.
| |
| write | back to summary |
|---|---|
| public void write(final byte[] buf) throws IOException Implements java. Doc from java. Writes an array of bytes. This method will block until the bytes are actually written.
| |
| write | back to summary |
|---|---|
| public void write(final byte[] buf, final int off, final int len) throws IOException Implements java. Doc from java. Writes a sub array of bytes.
| |
| writeBoolean | back to summary |
|---|---|
| public void writeBoolean(final boolean val) throws IOException Implements java. Doc from java. Writes a
| |
| writeByte | back to summary |
|---|---|
| public void writeByte(final int val) throws IOException Implements java. Doc from java. Writes to the output stream the eight low-order
bits of the argument
| |
| writeBytes | back to summary |
|---|---|
| public void writeBytes(final String str) throws IOException Implements java. Doc from java. Writes a string to the output stream.
For every character in the string
If
| |
| writeChar | back to summary |
|---|---|
| public void writeChar(final int val) throws IOException Implements java. Doc from java. Writes a
The bytes written by this method may be
read by the
| |
| writeChars | back to summary |
|---|---|
| public void writeChars(final String str) throws IOException Implements java. Doc from java. Writes every character in the string
| |
| writeDouble | back to summary |
|---|---|
| public void writeDouble(final double val) throws IOException Implements java. Doc from java. Writes a
| |
| writeFloat | back to summary |
|---|---|
| public void writeFloat(final float val) throws IOException Implements java. Doc from java. Writes a
| |
| writeInt | back to summary |
|---|---|
| public void writeInt(final int val) throws IOException Implements java. Doc from java. Writes an
The bytes written by this method may be read
by the
| |
| writeLong | back to summary |
|---|---|
| public void writeLong(final long val) throws IOException Implements java. Doc from java. Writes a
The bytes written by this method may be
read by the
| |
| writeObject | back to summary |
|---|---|
| public void writeObject(final Object obj) throws IOException Implements java. Doc from java. Write an object to the underlying storage or stream. The class that implements this interface defines how the object is written.
| |
| writeObjectUnshared | back to summary |
|---|---|
| public void writeObjectUnshared(final Object obj) throws IOException Implements org. Doc from org. Write an object to the underlying storage or stream as a new instance. The class that implements this interface defines how the object is written.
| |
| writeShort | back to summary |
|---|---|
| public void writeShort(final int val) throws IOException Implements java. Doc from java. Writes two bytes to the output stream to represent the value of the argument. The byte values to be written, in the order shown, are:
The bytes written by this method may be
read by the
| |
| writeUTF | back to summary |
|---|---|
| public void writeUTF(final String str) throws IOException Implements java. Doc from java. Writes two bytes of length information
to the output stream, followed
by the
modified UTF-8
representation
of every character in the string
If a character (byte)c
If a character If a character
First,
the total number of bytes needed to represent
all the characters of The
bytes written by this method may be read
by the
| |