Interface IntSerializer

  • All Known Implementing Classes:
    IndexSerializer

    public interface IntSerializer
    Writes/reads an integer to/from a binary stream.
    Author:
    Paul Ferraro
    • Method Detail

      • writeInt

        default void writeInt​(DataOutput output,
                              int value)
                       throws IOException
        Writes the specified integer to the specified output stream
        Parameters:
        output - the data output stream
        value - an integer value
        Throws:
        IOException - if an I/O error occurs
      • readInt

        default int readInt​(DataInput input)
                     throws IOException
        Read an integer from the specified input stream.
        Parameters:
        input - a data input stream
        Returns:
        the integer value
        Throws:
        IOException - if an I/O error occurs
      • size

        default int size​(int value)