| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final boolean | emptyComplexPart
When reading a property from data stream remember if the complex part is empty and set this flag. |
| private static final int | FIXED_SIZE
The size of the header that goes at the start of the array, before the data |
| private static int | |
| private boolean | sizeIncludesHeaderSize
Normally, the size recorded in the simple data (for the complex data) includes the size of the header. |
| Access | Constructor and Description |
|---|---|
| public | EscherArrayProperty(short
The id consists of the property number, a flag indicating whether this is a blip id and a flag
indicating that this is a complex property. id, int the data size complexSize)Create an instance of an escher array property. |
| public | EscherArrayProperty(short
the property number part of the property id propertyNumber, boolean true, if it references a blipthe data complexData)
Deprecated
use
EscherArrayProperty(EscherPropertyTypes, boolean, int) and setComplexData(byte[])
Create an instance of an escher array property. |
| public | EscherArrayProperty(EscherPropertyTypes
the property type of the property id type, boolean true, if it references a blipthe data size complexSize)Create an instance of an escher array property. |
| Modifier and Type | Method and Description |
|---|---|
| private static int | getActualSizeOfElements(short sizeOfElements)
Sometimes the element size is stored as a negative number. |
| public byte[] | |
| public Map | |
| public static int | Returns: the max record length allowed for EscherArrayPropertyHides org.
|
| public int | |
| public int | |
| public short | |
| public Iterator | |
| private void | |
| private static int | |
| public int | serializeSimplePart(byte[]
the buffer to write to data, int the starting position pos)Overrides org. Serializes the simple part of this property. |
| public int | Returns: the number of bytes used by this complex property.The data array containing the escher array information data, int The offset into the array to start reading from. offset)We have this method because the way in which arrays in escher works is screwed for seemly arbitrary reasons. |
| public void | |
| public static void | setMaxRecordLength(int
the max record length allowed for EscherArrayProperty length)Hides org.
|
| public void | |
| public void | |
| public void | |
| public Spliterator | spliterator()
Overrides default java. Creates a |
| DEFAULT_MAX_RECORD_LENGTH | back to summary |
|---|---|
| private static final int DEFAULT_MAX_RECORD_LENGTH Hides org. | |
| emptyComplexPart | back to summary |
|---|---|
| private final boolean emptyComplexPart When reading a property from data stream remember if the complex part is empty and set this flag. | |
| FIXED_SIZE | back to summary |
|---|---|
| private static final int FIXED_SIZE The size of the header that goes at the start of the array, before the data | |
| MAX_RECORD_LENGTH | back to summary |
|---|---|
| private static int MAX_RECORD_LENGTH Hides org. | |
| sizeIncludesHeaderSize | back to summary |
|---|---|
| private boolean sizeIncludesHeaderSize Normally, the size recorded in the simple data (for the complex data) includes the size of the header. There are a few cases when it doesn't though... | |
| EscherArrayProperty | back to summary |
|---|---|
| public EscherArrayProperty(short id, int complexSize) Create an instance of an escher array property.
This constructor can be used to create emptyComplexParts with a complexSize = 0.
Preferably use
| |
| EscherArrayProperty | back to summary |
|---|---|
| public EscherArrayProperty(short propertyNumber, boolean isBlipId, byte[] complexData)
Deprecated use Create an instance of an escher array property. This constructor defaults to a 6 bytes header if the complexData is null or byte[0].
| |
| EscherArrayProperty | back to summary |
|---|---|
| public EscherArrayProperty(EscherPropertyTypes type, boolean isBlipId, int complexSize) Create an instance of an escher array property. This constructor defaults to a 6 bytes header if the complexSize is 0.
| |
| getActualSizeOfElements | back to summary |
|---|---|
| private 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. | |
| getElement | back to summary |
|---|---|
| public byte[] getElement(int index) | |
| getGenericProperties | back to summary |
|---|---|
| public Map Overrides org. Implements org.
| |
| getMaxRecordLength | back to summary |
|---|---|
| public static int getMaxRecordLength() Hides org.
| |
| getNumberOfElementsInArray | back to summary |
|---|---|
| public int getNumberOfElementsInArray() | |
| getNumberOfElementsInMemory | back to summary |
|---|---|
| public int getNumberOfElementsInMemory() | |
| getSizeOfElements | back to summary |
|---|---|
| public short getSizeOfElements() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| rewriteArray | back to summary |
|---|---|
| private void rewriteArray(int numberOfElements, boolean copyToNewLen) | |
| safeSize | back to summary |
|---|---|
| private static int safeSize(int complexSize) | |
| serializeSimplePart | back to summary |
|---|---|
| public int serializeSimplePart(byte[] data, int pos) Overrides org. 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
| |
| setArrayData | back to summary |
|---|---|
| public 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. While most properties are fairly consistent and have a predictable array size, escher arrays have special cases.
| |
| setElement | back to summary |
|---|---|
| public void setElement(int index, byte[] element) | |
| setMaxRecordLength | back to summary |
|---|---|
| public static void setMaxRecordLength(int length) Hides org.
| |
| setNumberOfElementsInArray | back to summary |
|---|---|
| public void setNumberOfElementsInArray(int numberOfElements) | |
| setNumberOfElementsInMemory | back to summary |
|---|---|
| public void setNumberOfElementsInMemory(int numberOfElements) | |
| setSizeOfElements | back to summary |
|---|---|
| public void setSizeOfElements(int sizeOfElements) | |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |