public class EscherComplexProperty extends EscherProperty
| Constructor and Description | 
|---|
| EscherComplexProperty(EscherPropertyTypes type,
                     boolean isBlipId,
                     int complexSize)Create a complex property using the property type, a flag to indicate whether this is a
 blip reference and the complex property data size. | 
| EscherComplexProperty(short propertyNumber,
                     boolean isBlipId,
                     int complexSize)Create a complex property using the property number, a flag to indicate whether this is a
 blip reference and the complex property data size. | 
| EscherComplexProperty(short id,
                     int complexSize)Create a complex property using the property id and a byte array containing the complex
 data value size. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object o)Determine whether this property is equal to another property. | 
| byte[] | getComplexData()Get the complex data value. | 
| java.util.Map<java.lang.String,java.util.function.Supplier<?>> | getGenericProperties() | 
| static int | getMaxRecordLength() | 
| int | getPropertySize()Calculates the number of bytes required to serialize this property. | 
| int | hashCode() | 
| protected void | resizeComplexData(int newSize) | 
| protected void | resizeComplexData(int newSize,
                 int copyLen) | 
| int | serializeComplexPart(byte[] data,
                    int pos)Serializes the complex part of this property | 
| int | serializeSimplePart(byte[] data,
                   int pos)Serializes the simple part of this property. | 
| int | setComplexData(byte[] complexData) | 
| int | setComplexData(byte[] complexData,
              int offset) | 
| static void | setMaxRecordLength(int length) | 
getGenericChildren, getGenericRecordType, getId, getName, getPropertyNumber, isBlipId, isComplex, toString, toXmlpublic EscherComplexProperty(short id,
                             int complexSize)
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 byte size of this property.public EscherComplexProperty(short propertyNumber,
                             boolean isBlipId,
                             int complexSize)
propertyNumber - The property numberisBlipId - Whether this is a blip id.  Should be false.complexSize - The byte size of this property.public EscherComplexProperty(EscherPropertyTypes type, boolean isBlipId, int complexSize)
type - The property typeisBlipId - Whether this is a blip id.  Should be false.complexSize - The byte size of this property.public static void setMaxRecordLength(int length)
length - the max record length allowed for EscherComplexPropertypublic static int getMaxRecordLength()
public int serializeSimplePart(byte[] data,
                               int pos)
serializeSimplePart in class EscherPropertydata - the buffer to write topos - the starting positionpublic int serializeComplexPart(byte[] data,
                                int pos)
serializeComplexPart in class EscherPropertydata - The data array to serialize topos - The offset within data to start serializing to.public byte[] getComplexData()
public int setComplexData(byte[] complexData)
public int setComplexData(byte[] complexData,
                          int offset)
protected void resizeComplexData(int newSize)
protected void resizeComplexData(int newSize,
                                 int copyLen)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object to compare to.public int getPropertySize()
getPropertySize in class EscherPropertypublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordgetGenericProperties in class EscherPropertyCopyright 2022 The Apache Software Foundation or its licensors, as applicable.