|
JBoss Marshalling 1.3.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.marshalling.ChainingObjectTable
public class ChainingObjectTable
An object table that multiplexes up to 256 class tables. The protocol works by prepending the custom object table with an identifier byte.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.marshalling.ObjectTable |
---|
ObjectTable.Writer |
Constructor Summary | |
---|---|
ChainingObjectTable(ObjectTable[] objectTables)
Construct a new instance. |
Method Summary | |
---|---|
ObjectTable.Writer |
getObjectWriter(java.lang.Object obj)
Determine whether the given object reference is a valid predefined reference. |
java.lang.Object |
readObject(Unmarshaller unmarshaller)
Read an instance from the stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainingObjectTable(ObjectTable[] objectTables)
objectTables
- the object tables to delegate toMethod Detail |
---|
public ObjectTable.Writer getObjectWriter(java.lang.Object obj) throws java.io.IOException
getObjectWriter
in interface ObjectTable
obj
- the candidate object
null
to use the default mechanism
java.io.IOException
- if an I/O error occurspublic java.lang.Object readObject(Unmarshaller unmarshaller) throws java.io.IOException, java.lang.ClassNotFoundException
ObjectTable.getObjectWriter(Object)
method's Writer
instance, as defined above.
readObject
in interface ObjectTable
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
|
JBoss Marshalling 1.3.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |