@Internal public final class PieceDescriptor extends java.lang.Object implements Duplicatable
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.
|
PieceDescriptor(PieceDescriptor other) |
Modifier and Type | Method and Description |
---|---|
PieceDescriptor |
copy() |
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(PieceDescriptor other)
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.Object
public java.nio.charset.Charset getCharset()
null
public PropertyModifier getPrm()
protected byte[] toByteArray()
public static int getSizeInBytes()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public PieceDescriptor copy()
copy
in interface Duplicatable
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.