|
JBoss Marshalling 1.3.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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.serial.SerialMarshaller
public final class SerialMarshaller
Field Summary |
---|
Fields inherited from class org.jboss.marshalling.AbstractMarshaller |
---|
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, externalizerCreator, objectResolver, objectTable, serializabilityChecker, serializedCreator, 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()
Discard the class cache. |
void |
clearInstanceCache()
Discard the instance cache. |
protected void |
doWriteFields(SerializableClass info,
java.lang.Object obj)
|
protected void |
doWriteObject(java.lang.Object orig,
boolean unshared)
Implementation of the actual object-writing method. |
void |
finish()
Finish writing to a stream. |
void |
flush()
|
void |
start(ByteOutput byteOutput)
Begin writing to a stream. |
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 |
---|
protected void doWriteObject(java.lang.Object orig, boolean unshared) throws java.io.IOException
AbstractObjectOutput
doWriteObject
in class AbstractObjectOutput
orig
- the object to writeunshared
- true
if the instance is unshared, false
if it is shared
java.io.IOException
- if an I/O error occursprotected void doWriteFields(SerializableClass info, java.lang.Object obj) throws java.io.IOException
java.io.IOException
public void clearInstanceCache() throws java.io.IOException
Marshaller
clearInstanceCache
in interface Marshaller
java.io.IOException
- if an error occurspublic void clearClassCache() throws java.io.IOException
Marshaller
clearClassCache
in interface Marshaller
java.io.IOException
- if an error occurspublic void start(ByteOutput byteOutput) throws java.io.IOException
AbstractMarshaller
start
in interface Marshaller
start
in class AbstractMarshaller
byteOutput
- the new stream
java.io.IOException
- if an error occurspublic void finish() throws java.io.IOException
AbstractMarshaller
SimpleDataOutput.start(ByteOutput)
method is again invoked.
finish
in interface Marshaller
finish
in class AbstractMarshaller
java.io.IOException
- if an error occurspublic void flush() throws java.io.IOException
SimpleDataOutput
flush
in interface java.io.Flushable
flush
in interface java.io.ObjectOutput
flush
in class SimpleDataOutput
java.io.IOException
|
JBoss Marshalling 1.3.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |