Class PieceDescriptor

    • Constructor Detail

      • PieceDescriptor

        public PieceDescriptor​(byte[] buf,
                               int offset)
      • PieceDescriptor

        public PieceDescriptor​(byte[] buf,
                               int offset,
                               Charset charset)
        This initializer should only be used for HWPFOldDocuments.
        buf - The buffer to read data from
        offset - The offset into the buffer to start reading from
        charset - which charset to use if this is not unicode
    • Method Detail

      • getFilePosition

        public int getFilePosition()
      • setFilePosition

        public void setFilePosition​(int pos)
      • isUnicode

        public boolean isUnicode()
      • hashCode

        public int hashCode()
        hashCode in class Object
      • getCharset

        public Charset getCharset()
        charset to use if this is not a Unicode PieceDescriptor this can be null
      • getSizeInBytes

        public static int getSizeInBytes()