public final class EscherArrayProperty extends EscherComplexProperty
_complexData
Constructor and Description |
---|
EscherArrayProperty(short propertyNumber,
boolean isBlipId,
byte[] complexData) |
EscherArrayProperty(short id,
byte[] complexData) |
Modifier and Type | Method and Description |
---|---|
static int |
getActualSizeOfElements(short sizeOfElements)
Sometimes the element size is stored as a negative number.
|
byte[] |
getElement(int index) |
int |
getNumberOfElementsInArray() |
int |
getNumberOfElementsInMemory() |
short |
getSizeOfElements() |
int |
serializeSimplePart(byte[] data,
int pos)
Serializes the simple part of this property.
|
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.
|
void |
setElement(int index,
byte[] element) |
void |
setNumberOfElementsInArray(int numberOfElements) |
void |
setNumberOfElementsInMemory(int numberOfElements) |
void |
setSizeOfElements(int sizeOfElements) |
java.lang.String |
toString()
Retrieves the string representation for this property.
|
java.lang.String |
toXml(java.lang.String tab) |
equals, getComplexData, getPropertySize, hashCode, serializeComplexPart
getId, getName, getPropertyNumber, isBlipId, isComplex
public EscherArrayProperty(short id, byte[] complexData)
public EscherArrayProperty(short propertyNumber, boolean isBlipId, byte[] complexData)
public int getNumberOfElementsInArray()
public void setNumberOfElementsInArray(int numberOfElements)
public int getNumberOfElementsInMemory()
public void setNumberOfElementsInMemory(int numberOfElements)
public short getSizeOfElements()
public void setSizeOfElements(int sizeOfElements)
public byte[] getElement(int index)
public void setElement(int index, byte[] element)
public java.lang.String toString()
EscherComplexProperty
toString
in class EscherComplexProperty
public java.lang.String toXml(java.lang.String tab)
toXml
in class EscherComplexProperty
public int setArrayData(byte[] data, int offset)
data
- The data array containing the escher array informationoffset
- The offset into the array to start reading from.public int serializeSimplePart(byte[] data, int pos)
serializeSimplePart
in class EscherComplexProperty
public static int getActualSizeOfElements(short sizeOfElements)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.