Interface DataSerializable

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  DataSerializable.Replaceable
      Replaceable allows an object to write an alternative version of itself to a DataOutput.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void fromData​(java.io.DataInput in)
      Reads the state of this object as primitive data from the given DataInput.
      void toData​(java.io.DataOutput out)
      Writes the state of this object as primitive data to the given DataOutput.
    • Method Detail

      • toData

        void toData​(java.io.DataOutput out)
             throws java.io.IOException
        Writes the state of this object as primitive data to the given DataOutput.

        Since 5.7 it is possible for any method call to the specified DataOutput to throw GemFireRethrowable. It should not be caught by user code. If it is it must be rethrown.

        Parameters:
        out - the DataOutput to write to
        Throws:
        java.io.IOException - A problem occurs while writing to out
      • fromData

        void fromData​(java.io.DataInput in)
               throws java.io.IOException,
                      java.lang.ClassNotFoundException
        Reads the state of this object as primitive data from the given DataInput.
        Parameters:
        in - the DataInput to read from
        Throws:
        java.io.IOException - A problem occurs while reading from in
        java.lang.ClassNotFoundException - A class could not be loaded while reading from in