public class EscherComplexProperty extends EscherProperty
Constructor and Description |
---|
EscherComplexProperty(EscherPropertyTypes type, boolean isBlipId, int complexSize)
Create a complex property using the property type, a flag to indicate whether this is a blip reference and the complex property data size.
|
EscherComplexProperty(short propertyNumber, boolean isBlipId, int complexSize)
Create a complex property using the property number, a flag to indicate whether this is a blip reference and the complex property data size.
|
EscherComplexProperty(short id, int complexSize)
Create a complex property using the property id and a byte array containing the complex data value size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Determine whether this property is equal to another property.
(确定此属性是否等于另一个属性。)
|
byte[] |
getComplexData()
Get the complex data value.
(获取复数数据值。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getPropertySize()
Calculates the number of bytes required to serialize this property.
(计算序列化此属性所需的字节数。)
|
int |
hashCode() |
protected void |
resizeComplexData(int newSize) |
protected void |
resizeComplexData(int newSize, int copyLen) |
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.
(序列化此属性的简单部分。)
|
int |
setComplexData(byte[] complexData) |
int |
setComplexData(byte[] complexData, int offset) |
getGenericChildren, getGenericRecordType, getId, getName, getPropertyNumber, isBlipId, isComplex, toString, toXml
public EscherComplexProperty(short id, int complexSize)
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.
(id - id 由属性编号、指示这是否是 blip id 的标志和指示这是复杂属性的标志组成。)
complexSize
- The byte size of this property.
(complexSize - 此属性的字节大小。)
public EscherComplexProperty(short propertyNumber, boolean isBlipId, int complexSize)
propertyNumber
- The property number
(propertyNumber - 属性编号)
isBlipId
- Whether this is a blip id. Should be false.
(isBlipId - 这是否是一个 blip id。应该是假的。)
complexSize
- The byte size of this property.
(complexSize - 此属性的字节大小。)
public EscherComplexProperty(EscherPropertyTypes type, boolean isBlipId, int complexSize)
type
- The property type
(type - 属性类型)
isBlipId
- Whether this is a blip id. Should be false.
(isBlipId - 这是否是一个 blip id。应该是假的。)
complexSize
- The byte size of this property.
(complexSize - 此属性的字节大小。)
public int serializeSimplePart(byte[] data, int pos)
serializeSimplePart
in class
EscherProperty
(类 EscherProperty 中的 serializeSimplePart)
data
- the buffer to write to
(data - 要写入的缓冲区)
pos
- the starting position
(pos - 起始位置)
public int serializeComplexPart(byte[] data, int pos)
serializeComplexPart
in class
EscherProperty
(类 EscherProperty 中的 serializeComplexPart)
data
- The data array to serialize to
(data - 要序列化到的数据数组)
pos
- The offset within data to start serializing to.
(pos - 开始序列化到的数据中的偏移量。)
public byte[] getComplexData()
public int setComplexData(byte[] complexData)
public int setComplexData(byte[] complexData, int offset)
protected void resizeComplexData(int newSize)
protected void resizeComplexData(int newSize, int copyLen)
public boolean equals(java.lang.Object o)
equals
in class
java.lang.Object
o
- The object to compare to.
(o - 要比较的对象。)
public int getPropertySize()
getPropertySize
in class
EscherProperty
public int hashCode()
hashCode
in class
java.lang.Object
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
getGenericProperties
in class
EscherProperty
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.