| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private final RiverMarshaller | |
| private static final int | |
| private static final int | |
| private RiverPutField | |
| private SerializableClass | |
| private int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private boolean | |
| public void | defaultWriteObject()
Implements abstract org. |
| protected void | |
| protected void | |
| private int | |
| public ObjectOutputStream. | putFields()
Implements abstract org. |
| protected int | |
| protected SerializableClass | |
| protected Object | |
| public void | write(final int
the byte to write val)Overrides org. Implements org. b.
|
| public void | write(final byte[]
the byte array buf)Overrides org. Implements org. |
| public void | write(final byte[]
the byte array buf, final int the index to start writing from off, final int the number of bytes to write len)Overrides org. Implements org. |
| public void | writeBoolean(final boolean
the boolean to be written val)Overrides org. Implements java. |
| public void | writeByte(final int
the byte value to be written val)Overrides org. Implements java. |
| public void | writeBytes(final String
the String of bytes to be written str)Overrides org. Implements java. |
| public void | writeChar(final int
the char value to be written val)Overrides org. Implements java. |
| public void | writeChars(final String
the String of chars to be written str)Overrides org. Implements java. |
| public void | writeDouble(final double
the double value to be written val)Overrides org. Implements java. |
| public void | writeFields()
Implements abstract org. |
| public void | writeFloat(final float
the float value to be written val)Overrides org. Implements java. |
| public void | writeInt(final int
the integer value to be written val)Overrides org. Implements java. |
| public void | writeLong(final long
the long value to be written val)Overrides org. Implements java. |
| protected void | writeObjectOverride(final Object
object to be written to the underlying stream obj)Overrides org. |
| public void | writeShort(final int
the short value to be written val)Overrides org. Implements java. |
| public void | writeUnshared(final Object
object to write to stream obj)Overrides org. |
| public void | writeUTF(final String
the String to be written str)Overrides org. Implements java. |
| current | back to summary |
|---|---|
| private Object current | |
| marshaller | back to summary |
|---|---|
| private final RiverMarshaller marshaller | |
| OFF | back to summary |
|---|---|
| private static final int OFF | |
| ON | back to summary |
|---|---|
| private static final int ON | |
| putField | back to summary |
|---|---|
| private RiverPutField putField | |
| serializableClass | back to summary |
|---|---|
| private SerializableClass serializableClass | |
| state | back to summary |
|---|---|
| private int state | |
| UNWRITTEN_FIELDS | back to summary |
|---|---|
| private static final int UNWRITTEN_FIELDS | |
| RiverObjectOutputStream | back to summary |
|---|---|
| protected RiverObjectOutputStream(final Marshaller delegateMarshaller, final RiverMarshaller marshaller) throws IOException, SecurityException | |
| checkState | back to summary |
|---|---|
| private void checkState() throws IOException | |
| compareAndSetState | back to summary |
|---|---|
| private boolean compareAndSetState(int expect, int set) | |
| defaultWriteObject | back to summary |
|---|---|
| public void defaultWriteObject() throws IOException Implements abstract org. Doc from org. Write the non-static and non-transient fields of the current class to this stream. This may only be called from the writeObject method of the class being serialized. It will throw the NotActiveException if it is called otherwise.
| |
| finish | back to summary |
|---|---|
| protected void finish(int restoreState) throws IOException | |
| fullReset | back to summary |
|---|---|
| protected void fullReset() | |
| getAndSetState | back to summary |
|---|---|
| private int getAndSetState(int set) | |
| putFields | back to summary |
|---|---|
| public ObjectOutputStream. Implements abstract org. Doc from org. Retrieve the object used to buffer persistent fields to be written to the stream. The fields will be written to the stream when writeFields method is called.
| |
| start | back to summary |
|---|---|
| protected int start() throws IOException | |
| swapClass | back to summary |
|---|---|
| protected SerializableClass swapClass(SerializableClass newSerializableClass) | |
| swapCurrent | back to summary |
|---|---|
| protected Object swapCurrent(Object current) | |
| write | back to summary |
|---|---|
| public void write(final int val) throws IOException Overrides org. Implements org. Doc from org. Writes to the output stream the eight low-order bits of the argument
| |
| write | back to summary |
|---|---|
| public void write(final byte[] buf) throws IOException Overrides org. Implements org. Doc from org. Write all the bytes from the given array to the stream.
| |
| write | back to summary |
|---|---|
| public void write(final byte[] buf, final int off, final int len) throws IOException Overrides org. Implements org. Doc from org. Write some of the bytes from the given array to the stream.
| |
| writeBoolean | back to summary |
|---|---|
| public void writeBoolean(final boolean val) throws IOException Overrides org. Implements java. Doc from org. Writes a boolean.
| |
| writeByte | back to summary |
|---|---|
| public void writeByte(final int val) throws IOException Overrides org. Implements java. Doc from org. Writes an 8-bit byte.
| |
| writeBytes | back to summary |
|---|---|
| public void writeBytes(final String str) throws IOException Overrides org. Implements java. Doc from org. Writes a String as a sequence of bytes.
| |
| writeChar | back to summary |
|---|---|
| public void writeChar(final int val) throws IOException Overrides org. Implements java. Doc from org. Writes a 16-bit char.
| |
| writeChars | back to summary |
|---|---|
| public void writeChars(final String str) throws IOException Overrides org. Implements java. Doc from org. Writes a String as a sequence of chars.
| |
| writeDouble | back to summary |
|---|---|
| public void writeDouble(final double val) throws IOException Overrides org. Implements java. Doc from org. Writes a 64-bit double.
| |
| writeFields | back to summary |
|---|---|
| public void writeFields() throws IOException Implements abstract org. Doc from org. Write the buffered fields to the stream.
| |
| writeFloat | back to summary |
|---|---|
| public void writeFloat(final float val) throws IOException Overrides org. Implements java. Doc from org. Writes a 32-bit float.
| |
| writeInt | back to summary |
|---|---|
| public void writeInt(final int val) throws IOException Overrides org. Implements java. Doc from org. Writes a 32-bit int.
| |
| writeLong | back to summary |
|---|---|
| public void writeLong(final long val) throws IOException Overrides org. Implements java. Doc from org. Writes a 64-bit long.
| |
| writeObjectOverride | back to summary |
|---|---|
| protected void writeObjectOverride(final Object obj) throws IOException Overrides org. Doc from org. Method used by subclasses to override the default writeObject method. This method is called by trusted subclasses of ObjectOutputStream that constructed ObjectOutputStream using the protected no-arg constructor. The subclass is expected to provide an override method with the modifier "final".
| |
| writeShort | back to summary |
|---|---|
| public void writeShort(final int val) throws IOException Overrides org. Implements java. Doc from org. Writes a 16-bit short.
| |
| writeUnshared | back to summary |
|---|---|
| public void writeUnshared(final Object obj) throws IOException Overrides org. Doc from org. Writes an "unshared" object to the ObjectOutputStream. This method is identical to writeObject, except that it always writes the given object as a new, unique object in the stream (as opposed to a back-reference pointing to a previously serialized instance). Specifically:
ObjectOutputStream subclasses which override this method can only be constructed in security contexts possessing the "enableSubclassImplementation" SerializablePermission; any attempt to instantiate such a subclass without this permission will cause a SecurityException to be thrown.
| |
| writeUTF | back to summary |
|---|---|
| public void writeUTF(final String str) throws IOException Overrides org. Implements java. Doc from org. Primitive data write of this String in modified UTF-8 format. Note that there is a significant difference between writing a String into the stream as primitive data or as an Object. A String instance written by writeObject is written into the stream as a String initially. Future writeObject() calls write references to the string into the stream.
| |