public class ChainingObjectTable extends java.lang.Object implements ObjectTable
ObjectTable.Writer
Constructor and Description |
---|
ChainingObjectTable(ObjectTable[] objectTables)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ChainingObjectTable(ObjectTable[] objectTables)
objectTables
- the object tables to delegate topublic ObjectTable.Writer getObjectWriter(java.lang.Object obj) throws java.io.IOException
getObjectWriter
in interface ObjectTable
obj
- the candidate objectnull
to use the default mechanismjava.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 fromjava.io.IOException
- if an I/O error occursjava.lang.ClassNotFoundException
- if a class could not be foundCopyright © 2011 JBoss, a division of Red Hat, Inc.