Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache » poi » ddf » [javadoc | source]
org.apache.poi.ddf
public class: EscherArrayProperty [javadoc | source]
java.lang.Object
   org.apache.poi.ddf.EscherProperty
      org.apache.poi.ddf.EscherComplexProperty
         org.apache.poi.ddf.EscherArrayProperty
Escher array properties are the most wierd construction ever invented with all sorts of special cases. I'm hopeful I've got them all.
Fields inherited from org.apache.poi.ddf.EscherComplexProperty:
complexData
Fields inherited from org.apache.poi.ddf.EscherProperty:
id
Constructor:
 public EscherArrayProperty(short id,
    byte[] complexData) 
 public EscherArrayProperty(short propertyNumber,
    boolean isBlipId,
    byte[] complexData) 
Method from org.apache.poi.ddf.EscherArrayProperty Summary:
getActualSizeOfElements,   getElement,   getNumberOfElementsInArray,   getNumberOfElementsInMemory,   getSizeOfElements,   serializeSimplePart,   setArrayData,   setElement,   setNumberOfElementsInArray,   setNumberOfElementsInMemory,   setSizeOfElements,   toString
Methods from org.apache.poi.ddf.EscherComplexProperty:
equals,   getComplexData,   getPropertySize,   hashCode,   serializeComplexPart,   serializeSimplePart,   toString
Methods from org.apache.poi.ddf.EscherProperty:
getId,   getName,   getPropertyNumber,   getPropertySize,   isBlipId,   isComplex,   serializeComplexPart,   serializeSimplePart
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.ddf.EscherArrayProperty Detail:
 public static int getActualSizeOfElements(short sizeOfElements) 
    Sometimes the element size is stored as a negative number. We negate it and shift it to get the real value.
 public byte[] getElement(int index) 
 public int getNumberOfElementsInArray() 
 public int getNumberOfElementsInMemory() 
 public short getSizeOfElements() 
 public int serializeSimplePart(byte[] data,
    int pos) 
    Serializes the simple part of this property. ie the first 6 bytes. Needs special code to handle the case when the size doesn't include the size of the header block
 public int setArrayData(byte[] data,
    int offset) 
    We have this method because the way in which arrays in escher works is screwed for seemly arbitary reasons. While most properties are fairly consistent and have a predictable array size, escher arrays have special cases.
 public  void setElement(int index,
    byte[] element) 
 public  void setNumberOfElementsInArray(int numberOfElements) 
 public  void setNumberOfElementsInMemory(int numberOfElements) 
 public  void setSizeOfElements(int sizeOfElements) 
 public String toString()