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, bufferSize
byteOutput
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) |
doWriteObject
flush, 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
clearClassCache, clearInstanceCache
flush, write, write, write
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
write, write, write
protected 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 Marshaller
start
in class SimpleDataOutput
byteOutput
- the new streamIOException
- if an error occurspublic final void writeObjectUnshared(Object obj) throws IOException
writeObjectUnshared
in interface Marshaller
writeObjectUnshared
in class AbstractObjectOutput
obj
- the object to be writtenIOException
- if an error occurspublic final void writeObject(Object obj) throws IOException
writeObject
in interface ObjectOutput
writeObject
in class AbstractObjectOutput
IOException
public void finish() throws IOException
SimpleDataOutput.start(ByteOutput)
method is again invoked.finish
in interface Marshaller
finish
in class SimpleDataOutput
IOException
- if an error occurspublic void close() throws IOException
close
in interface Closeable
close
in interface ObjectOutput
close
in interface AutoCloseable
close
in class SimpleDataOutput
IOException
Copyright © 2019 JBoss by Red Hat. All rights reserved.