Package 

Interface SerializableObject

  • All Implemented Interfaces:

    
    public interface SerializableObject
    
                        

    Only the identity of the class of an SerializableObject instance is written in the serialization stream and it is the responsibility of the class to save and restore the contents of its instances. The writeExternal and a single arg constructor of the SerializableObject interface are implemented by a class to give the class complete control over the format and contents of the stream for an object and its supertypes. These methods must explicitly coordinate with the supertype to save its state.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void writeExternal(DataOutput out) The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • writeExternal

         abstract void writeExternal(DataOutput out)

        The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values.