Class PieceDescriptor

java.lang.Object
org.apache.poi.hwpf.model.PieceDescriptor

@Internal public final class PieceDescriptor extends Object
  • Constructor Details

    • PieceDescriptor

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

      public PieceDescriptor(byte[] buf, int offset, Charset charset)
      This initializer should only be used for HWPFOldDocuments.
      Parameters:
      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 Details

    • getFilePosition

      public int getFilePosition()
    • setFilePosition

      public void setFilePosition(int pos)
    • isUnicode

      public boolean isUnicode()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getCharset

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

      public PropertyModifier getPrm()
    • toByteArray

      protected byte[] toByteArray()
    • getSizeInBytes

      public static int getSizeInBytes()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object