|
JBoss Marshalling 1.3.0.CR9 | |||||||||
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
public abstract class AbstractMarshaller
An abstract implementation of the Marshaller
interface. Most of the
write methods delegate directly to the current data output.
Field Summary | |
---|---|
protected ClassExternalizerFactory |
classExternalizerFactory
The configured class externalizer factory. |
protected ClassResolver |
classResolver
The configured class resolver. |
protected ClassTable |
classTable
The configured class table. |
protected int |
configuredVersion
The configured version to write. |
protected ExceptionListener |
exceptionListener
The configured exception listener. |
protected Creator |
externalizerCreator
The configured externalized object creator. |
protected ObjectResolver |
objectResolver
The configured object resolver. |
protected ObjectTable |
objectTable
The configured object table. |
protected SerializabilityChecker |
serializabilityChecker
The configured serializability checker. |
protected Creator |
serializedCreator
The configured serialized object creator. |
protected StreamHeader |
streamHeader
The configured stream header. |
Fields inherited from class org.jboss.marshalling.SimpleDataOutput |
---|
buffer, bufferSize |
Fields inherited from class org.jboss.marshalling.ByteOutputStream |
---|
byteOutput |
Constructor Summary | |
---|---|
protected |
AbstractMarshaller(AbstractMarshallerFactory marshallerFactory,
MarshallingConfiguration configuration)
Construct a new marshaller instance. |
Method Summary | |
---|---|
void |
close()
|
void |
finish()
Finish writing to a stream. |
void |
start(ByteOutput byteOutput)
Begin writing to a stream. |
void |
writeObject(Object obj)
|
void |
writeObjectUnshared(Object obj)
|
Methods inherited from class org.jboss.marshalling.AbstractObjectOutput |
---|
doWriteObject |
Methods inherited from class org.jboss.marshalling.SimpleDataOutput |
---|
flush, 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 |
---|
clearClassCache, clearInstanceCache |
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, writeUTF |
Methods inherited from interface org.jboss.marshalling.ByteOutput |
---|
write, write, write |
Methods inherited from interface java.io.Flushable |
---|
flush |
Field Detail |
---|
protected final ClassExternalizerFactory classExternalizerFactory
protected final StreamHeader streamHeader
protected final ClassResolver classResolver
protected final ObjectResolver objectResolver
protected final Creator serializedCreator
protected final Creator externalizerCreator
protected final ClassTable classTable
protected final ObjectTable objectTable
protected final ExceptionListener exceptionListener
protected final SerializabilityChecker serializabilityChecker
protected final int configuredVersion
Constructor Detail |
---|
protected AbstractMarshaller(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration)
marshallerFactory
- the marshaller factoryconfiguration
- Method Detail |
---|
public void start(ByteOutput byteOutput) throws IOException
start
in interface Marshaller
start
in class SimpleDataOutput
byteOutput
- the new stream
IOException
- if an error occurspublic final void writeObjectUnshared(Object obj) throws IOException
writeObjectUnshared
in interface Marshaller
writeObjectUnshared
in class AbstractObjectOutput
obj
- the object to be written
IOException
- if an error occurspublic final void writeObject(Object obj) throws IOException
writeObject
in interface ObjectOutput
writeObject
in class AbstractObjectOutput
IOException
public void finish() throws IOException
SimpleDataOutput.start(ByteOutput)
method is again invoked.
finish
in interface Marshaller
finish
in class SimpleDataOutput
IOException
- if an error occurspublic void close() throws IOException
close
in interface Closeable
close
in interface ObjectOutput
close
in class SimpleDataOutput
IOException
|
JBoss Marshalling 1.3.0.CR9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |