public class RiverMarshaller extends AbstractMarshaller
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, objectPreResolver, objectResolver, objectTable, serializabilityChecker, streamHeader
buffer, bufferSize
byteOutput
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, writeObjectUnshared
flush, shallowFlush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flush, write, write, write
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort
write, write, write
protected RiverMarshaller(RiverMarshallerFactory marshallerFactory, SerializableClassRegistry registry, MarshallingConfiguration configuration) throws IOException
IOException
protected void doWriteObject(Object original, boolean unshared) throws IOException
AbstractObjectOutput
doWriteObject
in class AbstractObjectOutput
original
- 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
IOException
protected void doWriteFields(SerializableClass info, Object obj) throws IOException
IOException
protected void doWriteEmptyFields(SerializableClass info) throws IOException
IOException
protected void writeProxyClass(Class<?> objClass) throws IOException
IOException
protected void writeNewProxyClass(Class<?> objClass) throws IOException
IOException
protected void writeEnumClass(Class<? extends Enum> objClass) throws IOException
IOException
protected void writeNewEnumClass(Class<? extends Enum> objClass) throws IOException
IOException
protected void writeClassClass(Class<?> classObj) throws IOException
IOException
protected void writeObjectArrayClass(Class<?> objClass) throws IOException
IOException
protected void writeClass(Class<?> objClass) throws IOException
IOException
protected void writeNewClass(Class<?> objClass) throws IOException
IOException
protected boolean writeKnownClass(Class<?> objClass) throws IOException
IOException
protected void writeSerializableClass(Class<?> objClass) throws IOException
IOException
protected void writeNewSerializableClass(Class<?> objClass) throws IOException
IOException
protected void writeExternalizableClass(Class<?> objClass) throws IOException
IOException
protected void writeNewExternalizableClass(Class<?> objClass) throws IOException
IOException
protected void writeExternalizerClass(Class<?> objClass, Externalizer externalizer) throws IOException
IOException
protected void writeNewExternalizerClass(Class<?> objClass, Externalizer externalizer) throws IOException
IOException
public void clearInstanceCache() throws IOException
Marshaller
IOException
- if an error occurspublic void clearClassCache() throws IOException
Marshaller
IOException
- if an error occurspublic void start(ByteOutput byteOutput) throws IOException
AbstractMarshaller
start
in interface Marshaller
start
in class AbstractMarshaller
byteOutput
- the new streamIOException
- if an error occurspublic void writeUTF(String string) throws IOException
SimpleDataOutput
writeUTF
in interface DataOutput
writeUTF
in class SimpleDataOutput
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.