Interface DataSerializable

    • Method Detail

      • writeData

        void writeData​(ObjectDataOutput out)
                throws java.io.IOException
        Writes object fields to output stream
        Parameters:
        out - output
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
      • readData

        void readData​(ObjectDataInput in)
               throws java.io.IOException
        Reads fields from the input stream
        Parameters:
        in - input
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the input stream has been closed.