Package org.apache.poi.hwpf.model
Class PieceDescriptor
- java.lang.Object
 - 
- org.apache.poi.hwpf.model.PieceDescriptor
 
 
- 
@Internal public final class PieceDescriptor extends java.lang.Object
 
- 
- 
Constructor Summary
Constructors Constructor Description PieceDescriptor(byte[] buf, int offset)PieceDescriptor(byte[] buf, int offset, java.nio.charset.Charset charset)This initializer should only be used for HWPFOldDocuments. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.nio.charset.CharsetgetCharset()intgetFilePosition()PropertyModifiergetPrm()static intgetSizeInBytes()inthashCode()booleanisUnicode()voidsetFilePosition(int pos)java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
PieceDescriptor
public PieceDescriptor(byte[] buf, int offset) 
- 
PieceDescriptor
public PieceDescriptor(byte[] buf, int offset, java.nio.charset.Charset charset)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 Detail
- 
getFilePosition
public int getFilePosition()
 
- 
setFilePosition
public void setFilePosition(int pos)
 
- 
isUnicode
public boolean isUnicode()
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
getCharset
public java.nio.charset.Charset getCharset()
- Returns:
 - charset to use if this is not a Unicode PieceDescriptor
 this can be 
null 
 
- 
getPrm
public PropertyModifier getPrm()
 
- 
getSizeInBytes
public static int getSizeInBytes()
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -