|
Marshalling API version 1.0.0.Beta2 | ||||||||
| 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 | |
|---|---|
Object |
createExternal(Class<?> subjectType,
ObjectInput input,
Creator defaultCreator)
Create an instance of a type. |
void |
readExternal(Object subject,
ObjectInput input)
Read the external representation of an object. |
void |
writeExternal(Object subject,
ObjectOutput output)
Write the external representation of an object. |
| Method Detail |
|---|
void writeExternal(Object subject,
ObjectOutput output)
throws IOException
subject - the object to externalizeoutput - the output
IOException - if an error occurs
Object createExternal(Class<?> subjectType,
ObjectInput input,
Creator defaultCreator)
throws IOException,
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
IOException - if an error occurs
ClassNotFoundException - if a class could not be found during read
void readExternal(Object subject,
ObjectInput input)
throws IOException,
ClassNotFoundException
subject - the object to readinput - the input
IOException - if an error occurs
ClassNotFoundException - if a class could not be found during read
|
Marshalling API version 1.0.0.Beta2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||