|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.marshalling.ChainingClassTable
public class ChainingClassTable
A class table that multiplexes up to 256 class tables. The protocol works by prepending the custom class table with an identifier byte.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.marshalling.ClassTable |
---|
ClassTable.Writer |
Constructor Summary | |
---|---|
ChainingClassTable(ClassTable[] classTables)
Construct a new instance. |
Method Summary | |
---|---|
ClassTable.Writer |
getClassWriter(java.lang.Class<?> clazz)
Determine whether the given class reference is a valid predefined reference. |
java.lang.Class<?> |
readClass(Unmarshaller unmarshaller)
Read a class from the stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainingClassTable(ClassTable[] classTables)
classTables
- the class tables to delegate toMethod Detail |
---|
public ClassTable.Writer getClassWriter(java.lang.Class<?> clazz) throws java.io.IOException
getClassWriter
in interface ClassTable
clazz
- the candidate class
null
to use the default mechanism
java.io.IOException
- if an I/O error occurspublic java.lang.Class<?> readClass(Unmarshaller unmarshaller) throws java.io.IOException, java.lang.ClassNotFoundException
ClassTable.getClassWriter(Class)
method's Writer
instance, as defined above.
readClass
in interface ClassTable
unmarshaller
- the unmarshaller to read from
java.io.IOException
- if an I/O error occurs
java.lang.ClassNotFoundException
- if a class could not be found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |