java.lang.Object
java.io.OutputStream
org.jboss.marshalling.SimpleByteOutput
org.jboss.marshalling.ByteOutputStream
org.jboss.marshalling.SimpleDataOutput
org.jboss.marshalling.AbstractObjectOutput
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,ObjectOutput,AutoCloseable,ByteOutput
- Direct Known Subclasses:
AbstractMarshaller
An abstract object output implementation.
-
Field Summary
Fields inherited from class org.jboss.marshalling.SimpleDataOutput
buffer, bufferSizeFields inherited from class org.jboss.marshalling.ByteOutputStream
byteOutput -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractObjectOutput(int bufferSize) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoWriteObject(Object obj, boolean unshared) Implementation of the actual object-writing method.voidwriteObject(Object obj) voidMethods inherited from class org.jboss.marshalling.SimpleDataOutput
close, finish, flush, shallowFlush, start, write, write, write, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeChar, writeChars, writeInt, writeLong, writeShort, writeUTFMethods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeChar, writeChars, writeInt, writeLong, writeShort, writeUTF
-
Constructor Details
-
AbstractObjectOutput
protected AbstractObjectOutput(int bufferSize) Construct a new instance.- Parameters:
bufferSize- the buffer size
-
-
Method Details
-
doWriteObject
Implementation of the actual object-writing method.- Parameters:
obj- the object to writeunshared-trueif the instance is unshared,falseif it is shared- Throws:
IOException- if an I/O error occurs
-
writeObject
- Specified by:
writeObjectin interfaceObjectOutput- Throws:
IOException
-