Package org.apache.poi.hwpf.model
Class PieceDescriptor
java.lang.Object
org.apache.poi.hwpf.model.PieceDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionPieceDescriptor
(byte[] buf, int offset) PieceDescriptor
(byte[] buf, int offset, Charset charset) This initializer should only be used for HWPFOldDocuments. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getPrm()
static int
int
hashCode()
boolean
void
setFilePosition
(int pos) protected byte[]
toString()
-
Constructor Details
-
PieceDescriptor
public PieceDescriptor(byte[] buf, int offset) -
PieceDescriptor
This initializer should only be used for HWPFOldDocuments.- Parameters:
buf
- The buffer to read data fromoffset
- The offset into the buffer to start reading fromcharset
- 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() -
getCharset
- Returns:
- charset to use if this is not a Unicode PieceDescriptor
this can be
null
-
getPrm
-
toByteArray
protected byte[] toByteArray() -
getSizeInBytes
public static int getSizeInBytes() -
equals
-
toString
-