|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.ddf.EscherProperty org.apache.poi.ddf.EscherComplexProperty
public class EscherComplexProperty
A complex property differs from a simple property in that the data can not fit inside a 32 bit integer. See the specification for more detailed information regarding exactly what is stored here.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean |
equals(java.lang.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. |
protected void |
setComplexData(byte[] _complexData)
|
java.lang.String |
toString()
Retrieves the string representation for this property. |
java.lang.String |
toXml(java.lang.String tab)
|
Methods inherited from class org.apache.poi.ddf.EscherProperty |
---|
getId, getName, getPropertyNumber, isBlipId, isComplex |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public int serializeSimplePart(byte[] data, int pos)
serializeSimplePart
in class EscherProperty
data
- the buffer to write topos
- the starting position
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()
protected void setComplexData(byte[] _complexData)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare to.
public int getPropertySize()
getPropertySize
in class EscherProperty
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class EscherProperty
public java.lang.String toXml(java.lang.String tab)
toXml
in class EscherProperty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |