Top Description Inners Methods
org.jboss.marshalling

public Interface ClassTable

Known Direct Implementers
org.jboss.marshalling.ModularClassTable, org.jboss.marshalling.ChainingClassTable
Imports
java.io.IOException

A lookup mechanism for predefined classes. Some marshallers can use this to avoid sending lengthy class descriptor information.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
ClassTable.Writer

The class writer for a specific class.

Method Summary

Modifier and TypeMethod and Description
public ClassTable.Writer

Returns:

the class writer, or null to use the default mechanism
getClassWriter
(Class<?>
the candidate class
clazz
)

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

public Class<?>

Returns:

the class
readClass
(Unmarshaller
the unmarshaller to read from
unmarshaller
)

Read a class from the stream.

Method Detail

getClassWriterback to summary
public ClassTable.Writer getClassWriter(Class<?> clazz) throws IOException

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

Parameters
clazz:Class<?>

the candidate class

Returns:ClassTable.Writer

the class writer, or null to use the default mechanism

Exceptions
IOException:
if an I/O error occurs
readClassback to summary
public Class<?> readClass(Unmarshaller unmarshaller) throws IOException, ClassNotFoundException

Read a class from the stream. The class will have been written by the getClassWriter(Class) method's Writer instance, as defined above.

Parameters
unmarshaller:Unmarshaller

the unmarshaller to read from

Returns:Class<?>

the class

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

public Interface ClassTable.Writer

Known Direct Implementers
org.jboss.marshalling.ModularClassTable.ClassWriter, org.jboss.marshalling.ModularClassTable.ProxyWriter, org.jboss.marshalling.ByteWriter

The class writer for a specific class.

Method Summary

Modifier and TypeMethod and Description
public void
writeClass(Marshaller
the marshaller to write to
marshaller
,
Class<?>
the class reference to write
clazz
)

Write the predefined class reference to the stream.

Method Detail

writeClassback to summary
public void writeClass(Marshaller marshaller, Class<?> clazz) throws IOException

Write the predefined class reference to the stream.

Parameters
marshaller:Marshaller

the marshaller to write to

clazz:Class<?>

the class reference to write

Exceptions
IOException:
if an I/O error occurs