Package org.apache.poi.ddf
Class EscherProperty
java.lang.Object
org.apache.poi.ddf.EscherProperty
- All Implemented Interfaces:
GenericRecord
- Direct Known Subclasses:
EscherComplexProperty,EscherSimpleProperty
This is the abstract base class for all escher properties.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionList<? extends GenericRecord> shortgetId()getName()shortintMost properties are just 6 bytes in length.booleanisBlipId()booleanabstract intserializeComplexPart(byte[] data, int pos) Escher properties consist of a simple fixed length part and a complex variable length part.abstract intserializeSimplePart(byte[] data, int pos) Escher properties consist of a simple fixed length part and a complex variable length part.final StringtoString()final String
-
Method Details
-
getId
public short getId() -
getPropertyNumber
public short getPropertyNumber() -
isComplex
public boolean isComplex() -
isBlipId
public boolean isBlipId() -
getName
-
getPropertySize
public int getPropertySize()Most properties are just 6 bytes in length. Override this if we're dealing with complex properties.- Returns:
- size of this property (in bytes)
-
serializeSimplePart
public abstract int serializeSimplePart(byte[] data, int pos) Escher properties consist of a simple fixed length part and a complex variable length part. The fixed length part is serialized first.- Parameters:
data- the buffer to write topos- the starting position- Returns:
- the length of the part
-
serializeComplexPart
public abstract int serializeComplexPart(byte[] data, int pos) Escher properties consist of a simple fixed length part and a complex variable length part. The fixed length part is serialized first.- Parameters:
data- the buffer to write topos- the starting position- Returns:
- the length of the part
-
toString
-
toXml
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
getGenericChildren
- Specified by:
getGenericChildrenin interfaceGenericRecord
-
getGenericRecordType
- Specified by:
getGenericRecordTypein interfaceGenericRecord
-