Package org.jcsp.net
Class SerializedObject.ExtClass
- java.lang.Object
-
- org.jcsp.net.SerializedObject.ExtClass
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
- Enclosing class:
- SerializedObject
private static class SerializedObject.ExtClass extends java.lang.Object implements java.io.Externalizable
This class exists because the main class cannot have a no-arg constructor as required by externalizable. On serialization, this object replaces the SerializedObject.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
objectToString
byte[]
serializedData
-
Constructor Summary
Constructors Constructor Description ExtClass()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readExternal(java.io.ObjectInput in)
java.lang.Object
readResolve()
void
writeExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
readResolve
public java.lang.Object readResolve() throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
-
-