Package org.jboss.marshalling.river
Class RiverObjectOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ObjectOutputStream
-
- org.jboss.marshalling.MarshallerObjectOutputStream
-
- org.jboss.marshalling.river.RiverObjectOutputStream
-
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,ObjectOutput,ObjectStreamConstants,AutoCloseable,ByteOutput
public class RiverObjectOutputStream extends MarshallerObjectOutputStream
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.io.ObjectOutputStream
ObjectOutputStream.PutField
-
-
Field Summary
-
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, SERIAL_FILTER_PERMISSION, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRiverObjectOutputStream(Marshaller delegateMarshaller, RiverMarshaller marshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefaultWriteObject()protected voidfinish(int restoreState)protected voidfullReset()ObjectOutputStream.PutFieldputFields()protected intstart()protected SerializableClassswapClass(SerializableClass newSerializableClass)protected ObjectswapCurrent(Object current)voidwrite(byte[] buf)Write all the bytes from the given array to the stream.voidwrite(byte[] buf, int off, int len)Write some of the bytes from the given array to the stream.voidwrite(int val)Writes to the output stream the eight low-order bits of the argumentb.voidwriteBoolean(boolean val)voidwriteByte(int val)voidwriteBytes(String str)voidwriteChar(int val)voidwriteChars(String str)voidwriteDouble(double val)voidwriteFields()voidwriteFloat(float val)voidwriteInt(int val)voidwriteLong(long val)protected voidwriteObjectOverride(Object obj)voidwriteShort(int val)voidwriteUnshared(Object obj)voidwriteUTF(String str)-
Methods inherited from class org.jboss.marshalling.MarshallerObjectOutputStream
annotateClass, annotateProxyClass, close, drain, enableReplaceObject, flush, replaceObject, reset, useProtocolVersion, writeClassDescriptor, writeStreamHeader
-
Methods inherited from class java.io.ObjectOutputStream
writeObject
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
RiverObjectOutputStream
protected RiverObjectOutputStream(Marshaller delegateMarshaller, RiverMarshaller marshaller) throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
-
Method Detail
-
writeFields
public void writeFields() throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
writeFieldsin classMarshallerObjectOutputStream- Throws:
IOException
-
putFields
public ObjectOutputStream.PutField putFields() throws IOException
Description copied from class:MarshallerObjectOutputStream- Specified by:
putFieldsin classMarshallerObjectOutputStream- Throws:
IOException
-
swapClass
protected SerializableClass swapClass(SerializableClass newSerializableClass)
-
defaultWriteObject
public void defaultWriteObject() throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
defaultWriteObjectin classMarshallerObjectOutputStream- Throws:
IOException
-
start
protected int start() throws IOException- Throws:
IOException
-
writeObjectOverride
protected void writeObjectOverride(Object obj) throws IOException
Description copied from class:MarshallerObjectOutputStream- Overrides:
writeObjectOverridein classMarshallerObjectOutputStream- Throws:
IOException
-
writeUnshared
public void writeUnshared(Object obj) throws IOException
Description copied from class:MarshallerObjectOutputStream- Overrides:
writeUnsharedin classMarshallerObjectOutputStream- Throws:
IOException
-
write
public void write(int val) throws IOExceptionDescription copied from class:MarshallerObjectOutputStreamWrites to the output stream the eight low-order bits of the argumentb. The 24 high-order bits ofbare ignored.- Specified by:
writein interfaceByteOutput- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceObjectOutput- Overrides:
writein classMarshallerObjectOutputStream- Parameters:
val- the byte to write- Throws:
IOException- if an error occurs
-
write
public void write(byte[] buf) throws IOExceptionDescription copied from class:MarshallerObjectOutputStreamWrite all the bytes from the given array to the stream.- Specified by:
writein interfaceByteOutput- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceObjectOutput- Overrides:
writein classMarshallerObjectOutputStream- Parameters:
buf- the byte array- Throws:
IOException- if an error occurs
-
write
public void write(byte[] buf, int off, int len) throws IOExceptionDescription copied from class:MarshallerObjectOutputStreamWrite some of the bytes from the given array to the stream.- Specified by:
writein interfaceByteOutput- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceObjectOutput- Overrides:
writein classMarshallerObjectOutputStream- Parameters:
buf- the byte arrayoff- the index to start writing fromlen- the number of bytes to write- Throws:
IOException- if an error occurs
-
writeBoolean
public void writeBoolean(boolean val) throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
writeBooleanin interfaceDataOutput- Overrides:
writeBooleanin classMarshallerObjectOutputStream- Throws:
IOException
-
writeByte
public void writeByte(int val) throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
writeBytein interfaceDataOutput- Overrides:
writeBytein classMarshallerObjectOutputStream- Throws:
IOException
-
writeShort
public void writeShort(int val) throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
writeShortin interfaceDataOutput- Overrides:
writeShortin classMarshallerObjectOutputStream- Throws:
IOException
-
writeChar
public void writeChar(int val) throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
writeCharin interfaceDataOutput- Overrides:
writeCharin classMarshallerObjectOutputStream- Throws:
IOException
-
writeInt
public void writeInt(int val) throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
writeIntin interfaceDataOutput- Overrides:
writeIntin classMarshallerObjectOutputStream- Throws:
IOException
-
writeLong
public void writeLong(long val) throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
writeLongin interfaceDataOutput- Overrides:
writeLongin classMarshallerObjectOutputStream- Throws:
IOException
-
writeFloat
public void writeFloat(float val) throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
writeFloatin interfaceDataOutput- Overrides:
writeFloatin classMarshallerObjectOutputStream- Throws:
IOException
-
writeDouble
public void writeDouble(double val) throws IOExceptionDescription copied from class:MarshallerObjectOutputStream- Specified by:
writeDoublein interfaceDataOutput- Overrides:
writeDoublein classMarshallerObjectOutputStream- Throws:
IOException
-
writeBytes
public void writeBytes(String str) throws IOException
Description copied from class:MarshallerObjectOutputStream- Specified by:
writeBytesin interfaceDataOutput- Overrides:
writeBytesin classMarshallerObjectOutputStream- Throws:
IOException
-
writeChars
public void writeChars(String str) throws IOException
Description copied from class:MarshallerObjectOutputStream- Specified by:
writeCharsin interfaceDataOutput- Overrides:
writeCharsin classMarshallerObjectOutputStream- Throws:
IOException
-
writeUTF
public void writeUTF(String str) throws IOException
Description copied from class:MarshallerObjectOutputStream- Specified by:
writeUTFin interfaceDataOutput- Overrides:
writeUTFin classMarshallerObjectOutputStream- Throws:
IOException
-
finish
protected void finish(int restoreState) throws IOException- Throws:
IOException
-
fullReset
protected void fullReset()
-
-