|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Externalizer
A replacement serializer for an object class.
| Method Summary | |
|---|---|
java.lang.Object |
createExternal(java.lang.Class<?> subjectType,
java.io.ObjectInput input,
Creator defaultCreator)
Create an instance of a type. |
void |
readExternal(java.lang.Object subject,
java.io.ObjectInput input)
Read the external representation of an object. |
void |
writeExternal(java.lang.Object subject,
java.io.ObjectOutput output)
Write the external representation of an object. |
| Method Detail |
|---|
void writeExternal(java.lang.Object subject,
java.io.ObjectOutput output)
throws java.io.IOException
subject - the object to externalizeoutput - the output
java.io.IOException - if an error occurs
java.lang.Object createExternal(java.lang.Class<?> subjectType,
java.io.ObjectInput input,
Creator defaultCreator)
throws java.io.IOException,
java.lang.ClassNotFoundException
input, or that may be deferred
to the readExternal() method. Instances may simply delegate the task to the given Creator.
Note that this method is called only on the leaf class, so externalizers for non-final classes that initialize
the instance from the stream need to be aware of this.
subjectType - the type of object to createinput - the inputdefaultCreator - the configured creator
java.io.IOException - if an error occurs
java.lang.ClassNotFoundException - if a class could not be found during read
void readExternal(java.lang.Object subject,
java.io.ObjectInput input)
throws java.io.IOException,
java.lang.ClassNotFoundException
subject - the object to readinput - the input
java.io.IOException - if an error occurs
java.lang.ClassNotFoundException - if a class could not be found during read
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||