Class SerializedData.ExtClass

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable
    Enclosing class:
    SerializedData

    private static class SerializedData.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
      String representation of the object.
      byte[] serializedData
      Binary serialized form of the object.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtClass()
      Constructs a new instance of this class.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • serializedData

        public byte[] serializedData
        Binary serialized form of the object.
      • objectToString

        public java.lang.String objectToString
        String representation of the object.
    • Constructor Detail

      • ExtClass

        public ExtClass()
        Constructs a new instance of this class.
    • Method Detail

      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.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 interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • readResolve

        public java.lang.Object readResolve()
                                     throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException