
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(java.lang.Object obj) |
void |
writeObjectUnshared(java.lang.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, clearInstanceCachewriteBoolean, 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 java.io.IOException
start in interface Marshallerstart in class SimpleDataOutputbyteOutput - the new streamjava.io.IOException - if an error occurspublic final void writeObjectUnshared(java.lang.Object obj)
throws java.io.IOException
writeObjectUnshared in interface MarshallerwriteObjectUnshared in class AbstractObjectOutputobj - the object to be writtenjava.io.IOException - if an error occurspublic final void writeObject(java.lang.Object obj)
throws java.io.IOException
writeObject in interface java.io.ObjectOutputwriteObject in class AbstractObjectOutputjava.io.IOExceptionpublic void finish()
throws java.io.IOException
SimpleDataOutput.start(ByteOutput) method is again invoked.finish in interface Marshallerfinish in class SimpleDataOutputjava.io.IOException - if an error occurspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.io.ObjectOutputclose in interface java.lang.AutoCloseableclose in class SimpleDataOutputjava.io.IOExceptionCopyright © 2011 JBoss, a division of Red Hat, Inc.