|
JBoss Marshalling 1.3.0.CR9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.marshalling.AbstractExternalizer
public abstract class AbstractExternalizer
An externalizer base class which handles object creation in a default fashion.
Constructor Summary | |
---|---|
AbstractExternalizer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractExternalizer()
Method Detail |
---|
public Object createExternal(Class<?> subjectType, ObjectInput input, Creator defaultCreator) throws IOException, ClassNotFoundException
createExternal
in interface Externalizer
subjectType
- the type to createinput
- the object inputdefaultCreator
- the creator
IOException
- if an I/O error occurs
ClassNotFoundException
- if the class could not be locatedpublic void writeExternal(Object subject, ObjectOutput output) throws IOException
writeExternal
in interface Externalizer
subject
- the object to externalizeoutput
- the output
IOException
- if an error occurspublic void readExternal(Object subject, ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizer
subject
- the object to readinput
- the input
IOException
- if an error occurs
ClassNotFoundException
- if a class could not be found during read
|
JBoss Marshalling 1.3.0.CR9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |