public class JBossExternalizerAdapter extends Object implements Externalizer
| Constructor and Description |
|---|
JBossExternalizerAdapter(Externalizer<?> externalizer) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public JBossExternalizerAdapter(Externalizer<?> externalizer)
public void writeExternal(Object subject, ObjectOutput output) throws IOException
ExternalizerwriteExternal in interface Externalizersubject - the object to externalizeoutput - the outputIOException - if an error occurspublic Object createExternal(Class<?> subjectType, ObjectInput input, Creator defaultCreator) throws IOException, ClassNotFoundException
Externalizerinput, 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.createExternal in interface ExternalizersubjectType - the type of object to createinput - the inputdefaultCreator - the configured creatorIOException - if an error occursClassNotFoundException - if a class could not be found during readpublic void readExternal(Object subject, ObjectInput input) throws IOException, ClassNotFoundException
ExternalizerreadExternal in interface Externalizersubject - the object to readinput - the inputIOException - if an error occursClassNotFoundException - if a class could not be found during readCopyright © 2012 JBoss by Red Hat. All Rights Reserved.