@Internal public final class PieceDescriptor extends java.lang.Object
| Constructor and Description |
|---|
PieceDescriptor(byte[] buf,
int offset) |
PieceDescriptor(byte[] buf,
int offset,
java.nio.charset.Charset charset)
This initializer should only be used for HWPFOldDocuments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.nio.charset.Charset |
getCharset() |
int |
getFilePosition() |
PropertyModifier |
getPrm() |
static int |
getSizeInBytes() |
int |
hashCode() |
boolean |
isUnicode() |
void |
setFilePosition(int pos) |
protected byte[] |
toByteArray() |
java.lang.String |
toString() |
public PieceDescriptor(byte[] buf,
int offset)
public PieceDescriptor(byte[] buf,
int offset,
java.nio.charset.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 int hashCode()
hashCode in class java.lang.Objectpublic java.nio.charset.Charset getCharset()
nullpublic PropertyModifier getPrm()
protected byte[] toByteArray()
public static int getSizeInBytes()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2018 The Apache Software Foundation or its licensors, as applicable.