Package loci.poi.ddf
Class EscherSimpleProperty
java.lang.Object
loci.poi.ddf.EscherProperty
loci.poi.ddf.EscherSimpleProperty
- Direct Known Subclasses:
EscherBoolProperty,EscherRGBProperty,EscherShapePathProperty
A simple property is of fixed length and as a property number in addition
to a 32-bit value. Properties that can't be stored in only 32-bits are
stored as EscherComplexProperty objects.
- Author:
- Glen Stampoultzis (glens at apache.org)
-
Field Summary
FieldsFields inherited from class loci.poi.ddf.EscherProperty
id -
Constructor Summary
ConstructorsConstructorDescriptionEscherSimpleProperty(short propertyNumber, boolean isComplex, boolean isBlipId, int propertyValue) Constructs a new escher property.EscherSimpleProperty(short id, int propertyValue) The id is distinct from the actual property number. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if one escher property is equal to another.intinthashCode()Returns a hashcode so that this object can be stored in collections that require the use of such things.intserializeComplexPart(byte[] data, int pos) Escher properties consist of a simple fixed length part and a complex variable length part.intserializeSimplePart(byte[] data, int offset) Serialize the simple part of the escher record.toString()Methods inherited from class loci.poi.ddf.EscherProperty
getId, getName, getPropertyNumber, getPropertySize, isBlipId, isComplex
-
Field Details
-
propertyValue
protected int propertyValue
-
-
Constructor Details
-
EscherSimpleProperty
public EscherSimpleProperty(short id, int propertyValue) The id is distinct from the actual property number. The id includes the property number the blip id flag and an indicator whether the property is complex or not. -
EscherSimpleProperty
public EscherSimpleProperty(short propertyNumber, boolean isComplex, boolean isBlipId, int propertyValue) Constructs a new escher property. The three parameters are combined to form a property id.
-
-
Method Details
-
serializeSimplePart
public int serializeSimplePart(byte[] data, int offset) Serialize the simple part of the escher record.- Specified by:
serializeSimplePartin classEscherProperty- Returns:
- the number of bytes serialized.
-
serializeComplexPart
public 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.- Specified by:
serializeComplexPartin classEscherProperty
-
getPropertyValue
public int getPropertyValue()- Returns:
- Return the 32 bit value of this property.
-
equals
Returns true if one escher property is equal to another. -
hashCode
public int hashCode()Returns a hashcode so that this object can be stored in collections that require the use of such things. -
toString
-