| Method from org.apache.poi.ddf.EscherComplexProperty Detail: |
public boolean equals(Object o) {
if ( this == o ) return true;
if ( !( o instanceof EscherComplexProperty ) ) return false;
final EscherComplexProperty escherComplexProperty = (EscherComplexProperty) o;
if ( !Arrays.equals( complexData, escherComplexProperty.complexData ) ) return false;
return true;
}
Determine whether this property is equal to another property. |
public byte[] getComplexData() {
return complexData;
}
Get the complex data value. |
public int getPropertySize() {
return 6 + complexData.length;
}
Caclulates the number of bytes required to serialize this property. |
public int hashCode() {
return getId() * 11;
}
Calculates a hashcode for this property. |
public int serializeComplexPart(byte[] data,
int pos) {
System.arraycopy(complexData, 0, data, pos, complexData.length);
return complexData.length;
}
Serializes the complex part of this property |
public int serializeSimplePart(byte[] data,
int pos) {
LittleEndian.putShort(data, pos, getId());
LittleEndian.putInt(data, pos + 2, complexData.length);
return 6;
}
Serializes the simple part of this property. ie the first 6 bytes. |
public String toString() {
String dataStr;
ByteArrayOutputStream b = new ByteArrayOutputStream();
try
{
HexDump.dump( this.complexData, 0, b, 0 );
dataStr = b.toString();
}
catch ( Exception e )
{
dataStr = e.toString();
}
finally
{
try
{
b.close();
}
catch ( IOException e )
{
e.printStackTrace();
}
}
return "propNum: " + getPropertyNumber()
+ ", propName: " + EscherProperties.getPropertyName( getPropertyNumber() )
+ ", complex: " + isComplex()
+ ", blipId: " + isBlipId()
+ ", data: " + System.getProperty("line.separator") + dataStr;
}
Retrieves the string representation for this property. |