org.jboss.marshalling.river
Class RiverMarshaller
java.lang.Object
java.io.OutputStream
org.jboss.marshalling.SimpleByteOutput
org.jboss.marshalling.ByteOutputStream
org.jboss.marshalling.SimpleDataOutput
org.jboss.marshalling.AbstractObjectOutput
org.jboss.marshalling.AbstractMarshaller
org.jboss.marshalling.river.RiverMarshaller
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.io.ObjectOutput, ByteOutput, Marshaller
public class RiverMarshaller
- extends AbstractMarshaller
Fields inherited from class org.jboss.marshalling.AbstractMarshaller |
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, externalizerCreator, objectResolver, objectTable, serializabilityChecker, serializedCreator, streamHeader |
Methods inherited from class org.jboss.marshalling.SimpleDataOutput |
flush, shallowFlush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.ObjectOutput |
flush, write, write, write |
Methods inherited from interface java.io.DataOutput |
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort |
Methods inherited from interface java.io.Flushable |
flush |
RiverMarshaller
protected RiverMarshaller(RiverMarshallerFactory marshallerFactory,
SerializableClassRegistry registry,
MarshallingConfiguration configuration)
throws java.io.IOException
- Throws:
java.io.IOException
doWriteObject
protected void doWriteObject(java.lang.Object original,
boolean unshared)
throws java.io.IOException
- Description copied from class:
AbstractObjectOutput
- Implementation of the actual object-writing method.
- Specified by:
doWriteObject
in class AbstractObjectOutput
- Parameters:
original
- the object to writeunshared
- true
if the instance is unshared, false
if it is shared
- Throws:
java.io.IOException
- if an I/O error occurs
getObjectOutput
protected java.io.ObjectOutput getObjectOutput()
getBlockMarshaller
protected BlockMarshaller getBlockMarshaller()
doWriteSerializableObject
protected void doWriteSerializableObject(SerializableClass info,
java.lang.Object obj,
java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
doWriteFields
protected void doWriteFields(SerializableClass info,
java.lang.Object obj)
throws java.io.IOException
- Throws:
java.io.IOException
writeProxyClass
protected void writeProxyClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeNewProxyClass
protected void writeNewProxyClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeEnumClass
protected void writeEnumClass(java.lang.Class<? extends java.lang.Enum> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeNewEnumClass
protected void writeNewEnumClass(java.lang.Class<? extends java.lang.Enum> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeClassClass
protected void writeClassClass(java.lang.Class<?> classObj)
throws java.io.IOException
- Throws:
java.io.IOException
writeObjectArrayClass
protected void writeObjectArrayClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeClass
protected void writeClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeNewClass
protected void writeNewClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeKnownClass
protected boolean writeKnownClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeSerializableClass
protected void writeSerializableClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeNewSerializableClass
protected void writeNewSerializableClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeExternalizableClass
protected void writeExternalizableClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeNewExternalizableClass
protected void writeNewExternalizableClass(java.lang.Class<?> objClass)
throws java.io.IOException
- Throws:
java.io.IOException
writeExternalizerClass
protected void writeExternalizerClass(java.lang.Class<?> objClass,
Externalizer externalizer)
throws java.io.IOException
- Throws:
java.io.IOException
writeNewExternalizerClass
protected void writeNewExternalizerClass(java.lang.Class<?> objClass,
Externalizer externalizer)
throws java.io.IOException
- Throws:
java.io.IOException
clearInstanceCache
public void clearInstanceCache()
throws java.io.IOException
- Description copied from interface:
Marshaller
- Discard the instance cache. May also discard the class cache in implementations that do not support separated
class and instance caches.
- Throws:
java.io.IOException
- if an error occurs
clearClassCache
public void clearClassCache()
throws java.io.IOException
- Description copied from interface:
Marshaller
- Discard the class cache. Implicitly also discards the instance cache.
- Throws:
java.io.IOException
- if an error occurs
start
public void start(ByteOutput byteOutput)
throws java.io.IOException
- Description copied from class:
AbstractMarshaller
- Begin writing to a stream.
- Specified by:
start
in interface Marshaller
- Overrides:
start
in class AbstractMarshaller
- Parameters:
byteOutput
- the new stream
- Throws:
java.io.IOException
- if an error occurs
writeUTF
public void writeUTF(java.lang.String string)
throws java.io.IOException
- Description copied from class:
SimpleDataOutput
-
- Specified by:
writeUTF
in interface java.io.DataOutput
- Overrides:
writeUTF
in class SimpleDataOutput
- Throws:
java.io.IOException
Copyright © 2011 JBoss, a division of Red Hat, Inc.