Package org.apache.poi.hwpf.model
Class PieceDescriptor
java.lang.Object
org.apache.poi.hwpf.model.PieceDescriptor
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable
-
Constructor Summary
ConstructorsConstructorDescriptionPieceDescriptor(byte[] buf, int offset) PieceDescriptor(byte[] buf, int offset, Charset charset) This initializer should only be used for HWPFOldDocuments.PieceDescriptor(PieceDescriptor other) -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanintgetPrm()static intinthashCode()booleanvoidsetFilePosition(int pos) toString()
-
Constructor Details
-
PieceDescriptor
-
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
-
getSizeInBytes
public static int getSizeInBytes() -
equals
-
toString
-
copy
- Specified by:
copyin interfaceorg.apache.poi.common.Duplicatable
-