- All Known Implementing Classes:
ChainingObjectTable
public interface ObjectTable
A lookup mechanism for predefined object references. Some marshallers can use this to
correlate to known object instances.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe object writer for a specific object. -
Method Summary
Modifier and TypeMethodDescriptiongetObjectWriter(Object object) Determine whether the given object reference is a valid predefined reference.readObject(Unmarshaller unmarshaller) Read an instance from the stream.
-
Method Details
-
getObjectWriter
Determine whether the given object reference is a valid predefined reference.- Parameters:
object- the candidate object- Returns:
- the object writer, or
nullto use the default mechanism - Throws:
IOException- if an I/O error occurs
-
readObject
Read an instance from the stream. The instance will have been written by thegetObjectWriter(Object)method'sWriterinstance, as defined above.- Parameters:
unmarshaller- the unmarshaller to read from- Returns:
- the object instance
- Throws:
IOException- if an I/O error occursClassNotFoundException- if a class could not be found
-