public abstract class AbstractExternalizer extends Object implements Externalizer
| Constructor and Description |
|---|
AbstractExternalizer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createExternal(Class<?> subjectType,
ObjectInput input,
Creator defaultCreator)
Create an instance of a type using the provided creator.
|
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 Object createExternal(Class<?> subjectType, ObjectInput input, Creator defaultCreator) throws IOException, ClassNotFoundException
createExternal in interface ExternalizersubjectType - the type to createinput - the object inputdefaultCreator - the creatorIOException - if an I/O error occursClassNotFoundException - if the class could not be locatedpublic void writeExternal(Object subject, ObjectOutput output) throws IOException
writeExternal in interface Externalizersubject - the object to externalizeoutput - the outputIOException - if an error occurspublic void readExternal(Object subject, ObjectInput input) throws IOException, ClassNotFoundException
readExternal in interface Externalizersubject - the object to readinput - the inputIOException - if an error occursClassNotFoundException - if a class could not be found during readCopyright © 2018 JBoss by Red Hat. All rights reserved.