Interface ExtraField.Segment

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getHeaderId()
      Obtains the segment's header ID.
      int size()
      Obtains the size of the segment including the header ID.
      void write​(java.nio.ByteBuffer out)
      Writes the segment to a buffer.
    • Method Detail

      • getHeaderId

        int getHeaderId()
        Obtains the segment's header ID.
        Returns:
        the segment's header ID
      • size

        int size()
        Obtains the size of the segment including the header ID.
        Returns:
        the number of bytes needed to write the segment
      • write

        void write​(java.nio.ByteBuffer out)
            throws java.io.IOException
        Writes the segment to a buffer.
        Parameters:
        out - the buffer where to write the segment to; exactly size() bytes will be written
        Throws:
        java.io.IOException - failed to write segment data