public final class EscherArrayProperty extends EscherComplexProperty implements java.lang.Iterable<byte[]>
Constructor and Description |
---|
EscherArrayProperty(EscherPropertyTypes type,
boolean isBlipId,
int complexSize)
Create an instance of an escher array property.
|
EscherArrayProperty(short propertyNumber,
boolean isBlipId,
byte[] complexData)
|
EscherArrayProperty(short id,
int complexSize)
Create an instance of an escher array property.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getElement(int index) |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
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) |
equals, getComplexData, getPropertySize, hashCode, resizeComplexData, resizeComplexData, serializeComplexPart, setComplexData, setComplexData
getGenericChildren, getGenericRecordType, getId, getName, getPropertyNumber, isBlipId, isComplex, toString, toXml
@Internal public EscherArrayProperty(short id, int complexSize)
EscherArrayProperty(EscherPropertyTypes, boolean, int)
with EscherComplexProperty.setComplexData(byte[])
.id
- 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.complexSize
- the data size@Deprecated @Removal(version="5.0.0") public EscherArrayProperty(short propertyNumber, boolean isBlipId, byte[] complexData)
EscherArrayProperty(EscherPropertyTypes, boolean, int)
and EscherComplexProperty.setComplexData(byte[])
propertyNumber
- the property number part of the property idisBlipId
- true
, if it references a blipcomplexData
- the datapublic EscherArrayProperty(EscherPropertyTypes type, boolean isBlipId, int complexSize)
type
- the property type of the property idisBlipId
- true
, if it references a blipcomplexSize
- the data sizepublic 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 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
data
- the buffer to write topos
- the starting positionpublic java.util.Iterator<byte[]> iterator()
iterator
in interface java.lang.Iterable<byte[]>
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
getGenericProperties
in class EscherComplexProperty
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.