@Internal public final class PieceDescriptor extends Object implements Duplicatable
| Constructor and Description |
|---|
PieceDescriptor(byte[] buf,
int offset) |
PieceDescriptor(byte[] buf,
int offset,
Charset charset)
This initializer should only be used for HWPFOldDocuments.
|
PieceDescriptor(PieceDescriptor other) |
| Modifier and Type | Method and Description |
|---|---|
PieceDescriptor |
copy() |
boolean |
equals(Object obj) |
Charset |
getCharset() |
int |
getFilePosition() |
PropertyModifier |
getPrm() |
static int |
getSizeInBytes() |
int |
hashCode() |
boolean |
isUnicode() |
void |
setFilePosition(int pos) |
protected byte[] |
toByteArray() |
String |
toString() |
public PieceDescriptor(PieceDescriptor other)
public PieceDescriptor(byte[] buf,
int offset)
public PieceDescriptor(byte[] buf,
int offset,
Charset charset)
buf - The buffer to read data fromoffset - The offset into the buffer to start reading fromcharset - which charset to use if this is not unicodepublic int getFilePosition()
public void setFilePosition(int pos)
public boolean isUnicode()
public Charset getCharset()
nullpublic PropertyModifier getPrm()
protected byte[] toByteArray()
public static int getSizeInBytes()
public PieceDescriptor copy()
copy in interface Duplicatable