Marshaller interface. Most of the
write methods delegate directly to the current data output.
| Modifier and Type | Field and Description |
|---|---|
| protected final ClassExternalizerFactory | classExternalizerFactory
The configured class externalizer factory. |
| protected final ClassResolver | classResolver
The configured class resolver. |
| protected final ClassTable | classTable
The configured class table. |
| protected final int | configuredVersion
The configured version to write. |
| protected final ExceptionListener | exceptionListener
The configured exception listener. |
| protected final ObjectResolver | objectPreResolver
The configured pre object resolver. |
| protected final ObjectResolver | objectResolver
The configured object resolver. |
| protected final ObjectTable | objectTable
The configured object table. |
| protected final SerializabilityChecker | serializabilityChecker
The configured serializability checker. |
| protected final StreamHeader | streamHeader
The configured stream header. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractMarshaller(final AbstractMarshallerFactory
the marshaller factory marshallerFactory, final MarshallingConfiguration configuration)Construct a new marshaller instance. |
| Modifier and Type | Method and Description |
|---|---|
| private static int | calcBufferSize(final AbstractMarshallerFactory marshallerFactory, final MarshallingConfiguration configuration)
|
| public void | close()
Overrides org. Implements java. |
| public void | finish()
Overrides org. Implements org. |
| public void | start(final ByteOutput
the new stream byteOutput)Overrides org. Implements org. |
| public final void | writeObject(final Object
the object to be written obj)Overrides org. Implements java. |
| public final void | writeObjectUnshared(final Object
the object to be written obj)Overrides org. Implements org. |
| classExternalizerFactory | back to summary |
|---|---|
| protected final ClassExternalizerFactory classExternalizerFactory The configured class externalizer factory. | |
| classResolver | back to summary |
|---|---|
| protected final ClassResolver classResolver The configured class resolver. | |
| classTable | back to summary |
|---|---|
| protected final ClassTable classTable The configured class table. | |
| configuredVersion | back to summary |
|---|---|
| protected final int configuredVersion The configured version to write. | |
| exceptionListener | back to summary |
|---|---|
| protected final ExceptionListener exceptionListener The configured exception listener. | |
| objectPreResolver | back to summary |
|---|---|
| protected final ObjectResolver objectPreResolver The configured pre object resolver. | |
| objectResolver | back to summary |
|---|---|
| protected final ObjectResolver objectResolver The configured object resolver. | |
| objectTable | back to summary |
|---|---|
| protected final ObjectTable objectTable The configured object table. | |
| serializabilityChecker | back to summary |
|---|---|
| protected final SerializabilityChecker serializabilityChecker The configured serializability checker. | |
| streamHeader | back to summary |
|---|---|
| protected final StreamHeader streamHeader The configured stream header. | |
| AbstractMarshaller | back to summary |
|---|---|
| protected AbstractMarshaller(final AbstractMarshallerFactory marshallerFactory, final MarshallingConfiguration configuration) Construct a new marshaller instance.
| |
| calcBufferSize | back to summary |
|---|---|
| private static int calcBufferSize(final AbstractMarshallerFactory marshallerFactory, final MarshallingConfiguration configuration) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides org. Implements java. Doc from java. Closes the stream. This method must be called to release any resources associated with the stream.
| |
| finish | back to summary |
|---|---|
| public void finish() throws IOException Overrides org. Implements org. Doc from org. Finish marshalling to a stream. Any transient class or instance cache is discarded. The stream is released.
No further marshalling may be done until the
| |
| start | back to summary |
|---|---|
| public void start(final ByteOutput byteOutput) throws IOException Overrides org. Implements org. Doc from org. Begin marshalling to a stream.
| |
| writeObject | back to summary |
|---|---|
| public final void writeObject(final Object obj) throws IOException Overrides org. Implements java. Doc from java. Write an object to the underlying storage or stream. The class that implements this interface defines how the object is written.
| |
| writeObjectUnshared | back to summary |
|---|---|
| public final void writeObjectUnshared(final Object obj) throws IOException Overrides org. Implements org. Doc from org. Write an object to the underlying storage or stream as a new instance. The class that implements this interface defines how the object is written.
| |