public class EscherComplexProperty extends EscherProperty
Modifier and Type | Field and Description |
---|---|
protected byte[] |
_complexData |
Constructor and Description |
---|
EscherComplexProperty(short propertyNumber,
boolean isBlipId,
byte[] complexData)
Create a complex property using the property number, a flag to indicate whether this is a
blip reference and the complex property data.
|
EscherComplexProperty(short id,
byte[] complexData)
Create a complex property using the property id and a byte array containing the complex
data value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Determine whether this property is equal to another property.
|
byte[] |
getComplexData()
Get the complex data value.
|
int |
getPropertySize()
Calculates the number of bytes required to serialize this property.
|
int |
hashCode() |
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.
|
String |
toString()
Retrieves the string representation for this property.
|
String |
toXml(String tab) |
getId, getName, getPropertyNumber, isBlipId, isComplex
public EscherComplexProperty(short id, byte[] complexData)
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.complexData
- The value of this property.public EscherComplexProperty(short propertyNumber, boolean isBlipId, byte[] complexData)
propertyNumber
- The property numberisBlipId
- Whether this is a blip id. Should be false.complexData
- The value of this complex property.public int serializeSimplePart(byte[] data, int pos)
serializeSimplePart
in class EscherProperty
public int serializeComplexPart(byte[] data, int pos)
serializeComplexPart
in class EscherProperty
data
- The data array to serialize topos
- The offset within data to start serializing to.public byte[] getComplexData()
public boolean equals(Object o)
public int getPropertySize()
getPropertySize
in class EscherProperty
public String toString()
public String toXml(String tab)
toXml
in class EscherProperty
Copyright © 2020. All rights reserved.