Top Description Inners Methods
org.jboss.marshalling

public Interface ObjectTable

Known Direct Implementers
org.jboss.marshalling.ChainingObjectTable
Imports
java.io.IOException

A lookup mechanism for predefined object references. Some marshallers can use this to correlate to known object instances.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
ObjectTable.Writer

The object writer for a specific object.

Method Summary

Modifier and TypeMethod and Description
public ObjectTable.Writer

Returns:

the object writer, or null to use the default mechanism
getObjectWriter
(Object
the candidate object
object
)

Determine whether the given object reference is a valid predefined reference.

public Object

Returns:

the object instance
readObject
(Unmarshaller
the unmarshaller to read from
unmarshaller
)

Read an instance from the stream.

Method Detail

getObjectWriterback to summary
public ObjectTable.Writer getObjectWriter(Object object) throws IOException

Determine whether the given object reference is a valid predefined reference.

Parameters
object:Object

the candidate object

Returns:ObjectTable.Writer

the object writer, or null to use the default mechanism

Exceptions
IOException:
if an I/O error occurs
readObjectback to summary
public Object readObject(Unmarshaller unmarshaller) throws IOException, ClassNotFoundException

Read an instance from the stream. The instance will have been written by the getObjectWriter(Object) method's Writer instance, as defined above.

Parameters
unmarshaller:Unmarshaller

the unmarshaller to read from

Returns:Object

the object instance

Exceptions
IOException:
if an I/O error occurs
ClassNotFoundException:
if a class could not be found
org.jboss.marshalling back to summary

public Interface ObjectTable.Writer

Known Direct Implementers
org.jboss.marshalling.ByteWriter

The object writer for a specific object.

Method Summary

Modifier and TypeMethod and Description
public void
writeObject(Marshaller
the marshaller to write to
marshaller
,
Object
the object reference to write
object
)

Write the predefined object reference to the stream.

Method Detail

writeObjectback to summary
public void writeObject(Marshaller marshaller, Object object) throws IOException

Write the predefined object reference to the stream.

Parameters
marshaller:Marshaller

the marshaller to write to

object:Object

the object reference to write

Exceptions
IOException:
if an I/O error occurs