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,
java.lang.Object obj) |
protected void |
doWriteObject(java.lang.Object original,
boolean unshared)
Implementation of the actual object-writing method.
|
protected void |
doWriteSerializableObject(SerializableClass info,
java.lang.Object obj,
java.lang.Class<?> objClass) |
protected BlockMarshaller |
getBlockMarshaller() |
protected java.io.ObjectOutput |
getObjectOutput() |
void |
start(ByteOutput byteOutput)
Begin writing to a stream.
|
protected void |
writeClass(java.lang.Class<?> objClass) |
protected void |
writeClassClass(java.lang.Class<?> classObj) |
protected void |
writeEnumClass(java.lang.Class<? extends java.lang.Enum> objClass) |
protected void |
writeExternalizableClass(java.lang.Class<?> objClass) |
protected void |
writeExternalizerClass(java.lang.Class<?> objClass,
Externalizer externalizer) |
protected boolean |
writeKnownClass(java.lang.Class<?> objClass) |
protected void |
writeNewClass(java.lang.Class<?> objClass) |
protected void |
writeNewEnumClass(java.lang.Class<? extends java.lang.Enum> objClass) |
protected void |
writeNewExternalizableClass(java.lang.Class<?> objClass) |
protected void |
writeNewExternalizerClass(java.lang.Class<?> objClass,
Externalizer externalizer) |
protected void |
writeNewProxyClass(java.lang.Class<?> objClass) |
protected void |
writeNewSerializableClass(java.lang.Class<?> objClass) |
protected void |
writeObjectArrayClass(java.lang.Class<?> objClass) |
protected void |
writeProxyClass(java.lang.Class<?> objClass) |
protected void |
writeSerializableClass(java.lang.Class<?> objClass) |
void |
writeUTF(java.lang.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, waitwriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShortwrite, write, writeprotected RiverMarshaller(RiverMarshallerFactory marshallerFactory, SerializableClassRegistry registry, MarshallingConfiguration configuration) throws java.io.IOException
java.io.IOExceptionprotected void doWriteObject(java.lang.Object original,
boolean unshared)
throws java.io.IOException
AbstractObjectOutputdoWriteObject in class AbstractObjectOutputoriginal - the object to writeunshared - true if the instance is unshared, false if it is sharedjava.io.IOException - if an I/O error occursprotected java.io.ObjectOutput getObjectOutput()
protected BlockMarshaller getBlockMarshaller()
protected void doWriteSerializableObject(SerializableClass info, java.lang.Object obj, java.lang.Class<?> objClass) throws java.io.IOException
java.io.IOExceptionprotected void doWriteFields(SerializableClass info, java.lang.Object obj) throws java.io.IOException
java.io.IOExceptionprotected void doWriteEmptyFields(SerializableClass info) throws java.io.IOException
java.io.IOExceptionprotected void writeProxyClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeNewProxyClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeEnumClass(java.lang.Class<? extends java.lang.Enum> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeNewEnumClass(java.lang.Class<? extends java.lang.Enum> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeClassClass(java.lang.Class<?> classObj)
throws java.io.IOException
java.io.IOExceptionprotected void writeObjectArrayClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeNewClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected boolean writeKnownClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeSerializableClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeNewSerializableClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeExternalizableClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeNewExternalizableClass(java.lang.Class<?> objClass)
throws java.io.IOException
java.io.IOExceptionprotected void writeExternalizerClass(java.lang.Class<?> objClass,
Externalizer externalizer)
throws java.io.IOException
java.io.IOExceptionprotected void writeNewExternalizerClass(java.lang.Class<?> objClass,
Externalizer externalizer)
throws java.io.IOException
java.io.IOExceptionpublic void clearInstanceCache()
throws java.io.IOException
Marshallerjava.io.IOException - if an error occurspublic void clearClassCache()
throws java.io.IOException
Marshallerjava.io.IOException - if an error occurspublic void start(ByteOutput byteOutput) throws java.io.IOException
AbstractMarshallerstart in interface Marshallerstart in class AbstractMarshallerbyteOutput - the new streamjava.io.IOException - if an error occurspublic void writeUTF(java.lang.String string)
throws java.io.IOException
SimpleDataOutputwriteUTF in interface java.io.DataOutputwriteUTF in class SimpleDataOutputjava.io.IOExceptionCopyright © 2011 JBoss, a division of Red Hat, Inc.