org.apache.poi.hwpf.model
Class BytePropertyNode

java.lang.Object
  extended by org.apache.poi.hwpf.model.PropertyNode
      extended by org.apache.poi.hwpf.model.BytePropertyNode
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
CHPX, PAPX, SEPX

public abstract class BytePropertyNode
extends PropertyNode

Normally PropertyNodes only ever work in characters, but a few cases actually store bytes, and this lets everything still work despite that. It handles the conversion as required between bytes and characters.


Field Summary
 
Fields inherited from class org.apache.poi.hwpf.model.PropertyNode
_buf
 
Constructor Summary
BytePropertyNode(int fcStart, int fcEnd, java.lang.Object buf, boolean isUnicode)
           
 
Method Summary
 int getEndBytes()
           
 int getStartBytes()
           
 boolean isUnicode()
           
 
Methods inherited from class org.apache.poi.hwpf.model.PropertyNode
adjustForDelete, clone, compareTo, equals, getEnd, getStart, limitsAreEqual, setEnd, setStart
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytePropertyNode

public BytePropertyNode(int fcStart,
                        int fcEnd,
                        java.lang.Object buf,
                        boolean isUnicode)
Parameters:
fcStart - The start of the text for this property, in _bytes_
fcEnd - The end of the text for this property, in _bytes_
Method Detail

isUnicode

public boolean isUnicode()

getStartBytes

public int getStartBytes()

getEndBytes

public int getEndBytes()


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.