public class RiverMarshaller extends AbstractMarshaller
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, objectPreResolver, objectResolver, objectTable, serializabilityChecker, streamHeaderbuffer, bufferSizebyteOutput| Modifier | Constructor and Description |
|---|---|
protected |
RiverMarshaller(RiverMarshallerFactory marshallerFactory,
SerializableClassRegistry registry,
MarshallingConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearClassCache()
Discard the class cache.
|
void |
clearInstanceCache()
Discard the instance cache.
|
protected void |
doWriteEmptyFields(SerializableClass info) |
protected void |
doWriteFields(SerializableClass info,
Object obj) |
protected void |
doWriteObject(Object original,
boolean unshared)
Implementation of the actual object-writing method.
|
protected void |
doWriteSerializableObject(SerializableClass info,
Object obj,
Class<?> objClass) |
protected BlockMarshaller |
getBlockMarshaller() |
protected ObjectOutput |
getObjectOutput() |
void |
start(ByteOutput byteOutput)
Begin writing to a stream.
|
protected void |
writeClass(Class<?> objClass) |
protected void |
writeClassClass(Class<?> classObj) |
protected void |
writeEnumClass(Class<? extends Enum> objClass) |
protected void |
writeExternalizableClass(Class<?> objClass) |
protected void |
writeExternalizerClass(Class<?> objClass,
Externalizer externalizer) |
protected boolean |
writeKnownClass(Class<?> objClass) |
protected void |
writeNewClass(Class<?> objClass) |
protected void |
writeNewEnumClass(Class<? extends Enum> objClass) |
protected void |
writeNewExternalizableClass(Class<?> objClass) |
protected void |
writeNewExternalizerClass(Class<?> objClass,
Externalizer externalizer) |
protected void |
writeNewProxyClass(Class<?> objClass) |
protected void |
writeNewSerializableClass(Class<?> objClass) |
protected void |
writeObjectArrayClass(Class<?> objClass) |
protected void |
writeProxyClass(Class<?> objClass) |
protected void |
writeSerializableClass(Class<?> objClass) |
void |
writeUTF(String string) |
close, finish, writeObject, writeObjectUnsharedflush, shallowFlush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, write, write, writewriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShortwrite, write, writeprotected RiverMarshaller(RiverMarshallerFactory marshallerFactory, SerializableClassRegistry registry, MarshallingConfiguration configuration) throws IOException
IOExceptionprotected void doWriteObject(Object original, boolean unshared) throws IOException
AbstractObjectOutputdoWriteObject in class AbstractObjectOutputoriginal - the object to writeunshared - true if the instance is unshared, false if it is sharedIOException - if an I/O error occursprotected ObjectOutput getObjectOutput()
protected BlockMarshaller getBlockMarshaller()
protected void doWriteSerializableObject(SerializableClass info, Object obj, Class<?> objClass) throws IOException
IOExceptionprotected void doWriteFields(SerializableClass info, Object obj) throws IOException
IOExceptionprotected void doWriteEmptyFields(SerializableClass info) throws IOException
IOExceptionprotected void writeProxyClass(Class<?> objClass) throws IOException
IOExceptionprotected void writeNewProxyClass(Class<?> objClass) throws IOException
IOExceptionprotected void writeEnumClass(Class<? extends Enum> objClass) throws IOException
IOExceptionprotected void writeNewEnumClass(Class<? extends Enum> objClass) throws IOException
IOExceptionprotected void writeClassClass(Class<?> classObj) throws IOException
IOExceptionprotected void writeObjectArrayClass(Class<?> objClass) throws IOException
IOExceptionprotected void writeClass(Class<?> objClass) throws IOException
IOExceptionprotected void writeNewClass(Class<?> objClass) throws IOException
IOExceptionprotected boolean writeKnownClass(Class<?> objClass) throws IOException
IOExceptionprotected void writeSerializableClass(Class<?> objClass) throws IOException
IOExceptionprotected void writeNewSerializableClass(Class<?> objClass) throws IOException
IOExceptionprotected void writeExternalizableClass(Class<?> objClass) throws IOException
IOExceptionprotected void writeNewExternalizableClass(Class<?> objClass) throws IOException
IOExceptionprotected void writeExternalizerClass(Class<?> objClass, Externalizer externalizer) throws IOException
IOExceptionprotected void writeNewExternalizerClass(Class<?> objClass, Externalizer externalizer) throws IOException
IOExceptionpublic void clearInstanceCache()
throws IOException
MarshallerIOException - if an error occurspublic void clearClassCache()
throws IOException
MarshallerIOException - if an error occurspublic void start(ByteOutput byteOutput) throws IOException
AbstractMarshallerstart in interface Marshallerstart in class AbstractMarshallerbyteOutput - the new streamIOException - if an error occurspublic void writeUTF(String string) throws IOException
SimpleDataOutputwriteUTF in interface DataOutputwriteUTF in class SimpleDataOutputIOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.