|
JBoss Marshalling 1.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.marshalling.Pair.Externalizer
public static final class Pair.Externalizer

An externalizer for Pair instances.
| Constructor Summary | |
|---|---|
Pair.Externalizer()
|
|
| Method Summary | |
|---|---|
Object |
createExternal(Class<?> subjectType,
ObjectInput input,
Creator defaultCreator)
Create an instance of a type. |
static Pair.Externalizer |
getInstance()
Get the single instance. |
void |
readExternal(ObjectInput in)
|
void |
readExternal(Object subject,
ObjectInput input)
Read the external representation of an object. |
protected Object |
readResolve()
Resolve the object to the single externalizer instance. |
void |
writeExternal(Object subject,
ObjectOutput output)
Write the external representation of an object. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair.Externalizer()
| Method Detail |
|---|
public static Pair.Externalizer getInstance()
public void writeExternal(Object subject,
ObjectOutput output)
throws IOException
writeExternal in interface Externalizersubject - the object to externalizeoutput - the output
IOException - if an error occurs
public 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.
createExternal in interface ExternalizersubjectType - 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
public void readExternal(Object subject,
ObjectInput input)
readExternal in interface Externalizersubject - the object to readinput - the inputpublic void writeExternal(ObjectOutput out)
writeExternal in interface Externalizablepublic void readExternal(ObjectInput in)
readExternal in interface Externalizableprotected Object readResolve()
|
JBoss Marshalling 1.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||