Class DocumentIndexEntry

    • Constructor Detail

      • DocumentIndexEntry

        public DocumentIndexEntry()
    • Method Detail

      • getDocumentLength

        public int getDocumentLength()
        Return the length of the document.
        Returns:
        the length of the document.
      • setDocumentLength

        public void setDocumentLength​(int l)
        Set the length of the document.
        Parameters:
        l - the length of the document.
      • getNumberOfEntries

        public int getNumberOfEntries()
        Return the number of "things" that this pointer refers to.
        Specified by:
        getNumberOfEntries in interface Pointer
        Returns:
        the number of "things" that this pointer refers to.
      • getOffsetBits

        public byte getOffsetBits()
        Return the number of bits offset.
        Specified by:
        getOffsetBits in interface BitFilePosition
        Returns:
        the number of bits offset.
      • getOffset

        public long getOffset()
        Return the number of bytes offset.
        Specified by:
        getOffset in interface BitFilePosition
        Returns:
        the number of bytes offset.
      • getFileNumber

        public byte getFileNumber()
        Returns the file number (byte value in the 0-31 range)
        Specified by:
        getFileNumber in interface BitIndexPointer
        Returns:
        the file number (byte value in the 0-31 range)
      • setFileNumber

        public void setFileNumber​(byte fileId)
        Set the file number.
        Specified by:
        setFileNumber in interface BitIndexPointer
        Parameters:
        fileId - the file number.
      • setOffset

        public void setOffset​(long _bytes,
                              byte _bits)
        Set the offset in number of bytes and number of bits.
        Specified by:
        setOffset in interface BitFilePosition
        Parameters:
        _bytes - the number of bytes to set.
        _bits - the number of bits to set.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object