Package org.jboss.marshalling.serial
Class SerialMarshaller
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,ObjectOutput,ObjectStreamConstants,AutoCloseable,ByteOutput,Marshaller,ExtendedObjectStreamConstants
public final class SerialMarshaller
extends AbstractMarshaller
implements Marshaller, ExtendedObjectStreamConstants
-
Field Summary
Fields inherited from class org.jboss.marshalling.AbstractMarshaller
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, objectPreResolver, objectResolver, objectTable, serializabilityChecker, streamHeaderFields inherited from class org.jboss.marshalling.SimpleDataOutput
bufferFields inherited from class org.jboss.marshalling.ByteOutputStream
byteOutputFields inherited from interface org.jboss.marshalling.serial.ExtendedObjectStreamConstants
TC_CLASSTABLEDESC, TC_OBJECTTABLEFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidDiscard the class cache.voidDiscard the instance cache.protected voiddoWriteFields(SerializableClass info, Object obj) protected voiddoWriteObject(Object orig, boolean unshared) Implementation of the actual object-writing method.voidfinish()Finish writing to a stream.voidflush()voidstart(ByteOutput byteOutput) Begin writing to a stream.Methods inherited from class org.jboss.marshalling.AbstractMarshaller
close, writeObject, writeObjectUnsharedMethods inherited from class org.jboss.marshalling.SimpleDataOutput
shallowFlush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, 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 org.jboss.marshalling.ByteOutput
write, write, writeMethods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from interface org.jboss.marshalling.Marshaller
writeObjectUnsharedMethods inherited from interface java.io.ObjectOutput
close, write, write, write, writeObject
-
Method Details
-
doWriteObject
Description copied from class:AbstractObjectOutputImplementation of the actual object-writing method.- Specified by:
doWriteObjectin classAbstractObjectOutput- Parameters:
orig- the object to writeunshared-trueif the instance is unshared,falseif it is shared- Throws:
IOException- if an I/O error occurs
-
doWriteFields
- Throws:
IOException
-
clearInstanceCache
Description copied from interface:MarshallerDiscard the instance cache. May also discard the class cache in implementations that do not support separated class and instance caches.- Specified by:
clearInstanceCachein interfaceMarshaller- Throws:
IOException- if an error occurs
-
clearClassCache
Description copied from interface:MarshallerDiscard the class cache. Implicitly also discards the instance cache.- Specified by:
clearClassCachein interfaceMarshaller- Throws:
IOException- if an error occurs
-
start
Description copied from class:AbstractMarshallerBegin writing to a stream.- Specified by:
startin interfaceMarshaller- Overrides:
startin classAbstractMarshaller- Parameters:
byteOutput- the new stream- Throws:
IOException- if an error occurs
-
finish
Description copied from class:AbstractMarshallerFinish writing to a stream. The stream is released. No further writing may be done until theSimpleDataOutput.start(ByteOutput)method is again invoked.- Specified by:
finishin interfaceMarshaller- Overrides:
finishin classAbstractMarshaller- Throws:
IOException- if an error occurs
-
flush
Description copied from class:SimpleDataOutput- Specified by:
flushin interfaceFlushable- Specified by:
flushin interfaceObjectOutput- Overrides:
flushin classSimpleDataOutput- Throws:
IOException
-