public class ChainingObjectTable extends java.lang.Object implements ObjectTable
ObjectTable.Writer| Modifier and Type | Field and Description |
|---|---|
private ObjectTable[] |
readers |
private java.util.List<Pair<ObjectTable,ObjectTable.Writer>> |
writers |
| 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.
|
private static Pair<ObjectTable,ObjectTable.Writer> |
pair(ObjectTable objectTable,
ObjectTable.Writer writer) |
java.lang.Object |
readObject(Unmarshaller unmarshaller)
Read an instance from the stream.
|
private final java.util.List<Pair<ObjectTable,ObjectTable.Writer>> writers
private final ObjectTable[] readers
public ChainingObjectTable(ObjectTable[] objectTables)
objectTables - the object tables to delegate toprivate static Pair<ObjectTable,ObjectTable.Writer> pair(ObjectTable objectTable, ObjectTable.Writer writer)
public ObjectTable.Writer getObjectWriter(java.lang.Object obj) throws java.io.IOException
getObjectWriter in interface ObjectTableobj - 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 ObjectTableunmarshaller - the unmarshaller to read fromjava.io.IOException - if an I/O error occursjava.lang.ClassNotFoundException - if a class could not be found