public final class EscherArrayProperty extends EscherComplexProperty implements java.lang.Iterable<byte[]>
| Constructor and Description |
|---|
EscherArrayProperty(short propertyNumber,
boolean isBlipId,
byte[] complexData) |
EscherArrayProperty(short id,
byte[] complexData) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getElement(int index) |
int |
getNumberOfElementsInArray() |
int |
getNumberOfElementsInMemory() |
short |
getSizeOfElements() |
java.util.Iterator<byte[]> |
iterator() |
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 arbitrary 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, setComplexDatagetId, getName, getPropertyNumber, isBlipId, isComplexpublic 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()
EscherComplexPropertytoString in class EscherComplexPropertypublic java.lang.String toXml(java.lang.String tab)
toXml in class EscherComplexPropertypublic 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 EscherComplexPropertydata - the buffer to write topos - the starting positionpublic java.util.Iterator<byte[]> iterator()
iterator in interface java.lang.Iterable<byte[]>Copyright 2018 The Apache Software Foundation or its licensors, as applicable.