|
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
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(java.lang.Object obj)
|
void |
writeObjectUnshared(java.lang.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 java.io.IOException
start in interface Marshallerstart in class SimpleDataOutputbyteOutput - the new stream
java.io.IOException - if an error occurs
public final void writeObjectUnshared(java.lang.Object obj)
throws java.io.IOException
writeObjectUnshared in interface MarshallerwriteObjectUnshared in class AbstractObjectOutputobj - the object to be written
java.io.IOException - if an error occurs
public final void writeObject(java.lang.Object obj)
throws java.io.IOException
writeObject in interface java.io.ObjectOutputwriteObject in class AbstractObjectOutputjava.io.IOException
public void finish()
throws java.io.IOException
SimpleDataOutput.start(ByteOutput) method is again invoked.
finish in interface Marshallerfinish in class SimpleDataOutputjava.io.IOException - if an error occurs
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.io.ObjectOutputclose in class SimpleDataOutputjava.io.IOException
|
JBoss Marshalling 1.3.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||