public final class SerialMarshaller extends AbstractMarshaller implements Marshaller, ExtendedObjectStreamConstants
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, objectPreResolver, objectResolver, objectTable, serializabilityChecker, streamHeader
buffer
byteOutput
TC_CLASSTABLEDESC, TC_OBJECTTABLE
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, 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
Modifier and Type | Method and Description |
---|---|
void |
clearClassCache()
Discard the class cache.
|
void |
clearInstanceCache()
Discard the instance cache.
|
protected void |
doWriteFields(SerializableClass info,
Object obj) |
protected void |
doWriteObject(Object orig,
boolean unshared)
Implementation of the actual object-writing method.
|
void |
finish()
Finish writing to a stream.
|
void |
flush() |
void |
start(ByteOutput byteOutput)
Begin writing to a stream.
|
close, writeObject, writeObjectUnshared
shallowFlush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeObjectUnshared
close, write, write, write, writeObject
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
write, write, write
protected void doWriteObject(Object orig, boolean unshared) throws IOException
AbstractObjectOutput
doWriteObject
in class AbstractObjectOutput
orig
- the object to writeunshared
- true
if the instance is unshared, false
if it is sharedIOException
- if an I/O error occursprotected void doWriteFields(SerializableClass info, Object obj) throws IOException
IOException
public void clearInstanceCache() throws IOException
Marshaller
clearInstanceCache
in interface Marshaller
IOException
- if an error occurspublic void clearClassCache() throws IOException
Marshaller
clearClassCache
in interface Marshaller
IOException
- if an error occurspublic void start(ByteOutput byteOutput) throws IOException
AbstractMarshaller
start
in interface Marshaller
start
in class AbstractMarshaller
byteOutput
- the new streamIOException
- if an error occurspublic void finish() throws IOException
AbstractMarshaller
SimpleDataOutput.start(ByteOutput)
method is again invoked.finish
in interface Marshaller
finish
in class AbstractMarshaller
IOException
- if an error occurspublic void flush() throws IOException
SimpleDataOutput
flush
in interface Flushable
flush
in interface ObjectOutput
flush
in class SimpleDataOutput
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.