JBoss Marshalling 1.4.1.Final

org.jboss.marshalling.serial
Class SerialMarshaller

java.lang.Object
  extended by java.io.OutputStream
      extended by org.jboss.marshalling.SimpleByteOutput
          extended by org.jboss.marshalling.ByteOutputStream
              extended by org.jboss.marshalling.SimpleDataOutput
                  extended by org.jboss.marshalling.AbstractObjectOutput
                      extended by org.jboss.marshalling.AbstractMarshaller
                          extended by org.jboss.marshalling.serial.SerialMarshaller
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, ObjectStreamConstants, ByteOutput, Marshaller, ExtendedObjectStreamConstants

public final class SerialMarshaller
extends AbstractMarshaller
implements Marshaller, ExtendedObjectStreamConstants


Field Summary
 
Fields inherited from class org.jboss.marshalling.AbstractMarshaller
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, objectPreResolver, objectResolver, objectTable, serializabilityChecker, streamHeader
 
Fields inherited from class org.jboss.marshalling.SimpleDataOutput
buffer
 
Fields inherited from class org.jboss.marshalling.ByteOutputStream
byteOutput
 
Fields inherited from interface org.jboss.marshalling.serial.ExtendedObjectStreamConstants
TC_CLASSTABLEDESC, TC_OBJECTTABLE
 
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
 
Method Summary
 void clearClassCache()
           
 void clearInstanceCache()
           
protected  void doWriteFields(SerializableClass info, Object obj)
           
protected  void doWriteObject(Object orig, boolean unshared)
           
 void finish()
           
 void flush()
           
 void start(ByteOutput byteOutput)
           
 
Methods inherited from class org.jboss.marshalling.AbstractMarshaller
close, writeObject, writeObjectUnshared
 
Methods inherited from class org.jboss.marshalling.SimpleDataOutput
shallowFlush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.marshalling.Marshaller
writeObjectUnshared
 
Methods inherited from interface java.io.ObjectOutput
close, write, write, write, writeObject
 
Methods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from interface org.jboss.marshalling.ByteOutput
write, write, write
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

doWriteObject

protected void doWriteObject(Object orig,
                             boolean unshared)
                      throws IOException
Specified by:
doWriteObject in class AbstractObjectOutput
Throws:
IOException

doWriteFields

protected void doWriteFields(SerializableClass info,
                             Object obj)
                      throws IOException
Throws:
IOException

clearInstanceCache

public void clearInstanceCache()
                        throws IOException
Specified by:
clearInstanceCache in interface Marshaller
Throws:
IOException

clearClassCache

public void clearClassCache()
                     throws IOException
Specified by:
clearClassCache in interface Marshaller
Throws:
IOException

start

public void start(ByteOutput byteOutput)
           throws IOException
Specified by:
start in interface Marshaller
Overrides:
start in class AbstractMarshaller
Throws:
IOException

finish

public void finish()
            throws IOException
Specified by:
finish in interface Marshaller
Overrides:
finish in class AbstractMarshaller
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in interface ObjectOutput
Overrides:
flush in class SimpleDataOutput
Throws:
IOException

JBoss Marshalling 1.4.1.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.