public abstract class AbstractMarshaller extends AbstractObjectOutput implements Marshaller
Marshaller interface. Most of the
write methods delegate directly to the current data output.| Modifier and Type | Field and Description |
|---|---|
protected ClassExternalizerFactory |
classExternalizerFactory
The configured class externalizer factory.
|
protected ClassResolver |
classResolver
The configured class resolver.
|
protected ClassTable |
classTable
The configured class table.
|
protected int |
configuredVersion
The configured version to write.
|
protected ExceptionListener |
exceptionListener
The configured exception listener.
|
protected ObjectResolver |
objectPreResolver
The configured pre object resolver.
|
protected ObjectResolver |
objectResolver
The configured object resolver.
|
protected ObjectTable |
objectTable
The configured object table.
|
protected SerializabilityChecker |
serializabilityChecker
The configured serializability checker.
|
protected StreamHeader |
streamHeader
The configured stream header.
|
buffer, bufferSizebyteOutput| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMarshaller(AbstractMarshallerFactory marshallerFactory,
MarshallingConfiguration configuration)
Construct a new marshaller instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finish()
Finish writing to a stream.
|
void |
start(ByteOutput byteOutput)
Begin writing to a stream.
|
void |
writeObject(Object obj) |
void |
writeObjectUnshared(Object obj) |
doWriteObjectflush, shallowFlush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearClassCache, clearInstanceCacheflush, write, write, writewriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFwrite, write, writeprotected final ClassExternalizerFactory classExternalizerFactory
protected final StreamHeader streamHeader
protected final ClassResolver classResolver
protected final ObjectResolver objectResolver
protected final ObjectResolver objectPreResolver
protected final ClassTable classTable
protected final ObjectTable objectTable
protected final ExceptionListener exceptionListener
protected final SerializabilityChecker serializabilityChecker
protected final int configuredVersion
protected AbstractMarshaller(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration)
marshallerFactory - the marshaller factoryconfiguration - public void start(ByteOutput byteOutput) throws IOException
start in interface Marshallerstart in class SimpleDataOutputbyteOutput - the new streamIOException - if an error occurspublic final void writeObjectUnshared(Object obj) throws IOException
writeObjectUnshared in interface MarshallerwriteObjectUnshared in class AbstractObjectOutputobj - the object to be writtenIOException - if an error occurspublic final void writeObject(Object obj) throws IOException
writeObject in interface ObjectOutputwriteObject in class AbstractObjectOutputIOExceptionpublic void finish()
throws IOException
SimpleDataOutput.start(ByteOutput) method is again invoked.finish in interface Marshallerfinish in class SimpleDataOutputIOException - if an error occurspublic void close()
throws IOException
close in interface Closeableclose in interface ObjectOutputclose in interface AutoCloseableclose in class SimpleDataOutputIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.