public final class EscherBSERecord extends EscherRecord
EscherBlipRecord
and stores extra information about the blip. A blip record is actually stored inside the BSE record even though the BSE record isn't actually a container record.
(BSE 记录与 EscherBlipRecord 密切相关,并存储有关 blip 的额外信息。 Blip 记录实际上存储在 BSE 记录中,即使 BSE 记录实际上不是容器记录。)
EscherBlipRecord
Modifier and Type | Field and Description |
---|---|
static short |
RECORD_ID |
Constructor and Description |
---|
EscherBSERecord() |
EscherBSERecord(EscherBSERecord other) |
Modifier and Type | Method and Description |
---|---|
EscherBSERecord |
copy() |
int |
fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)
The contract of this method is to deserialize an escher record including it's children.
(此方法的约定是反序列化包括其子项的 escher 记录。)
|
EscherBlipRecord |
getBlipRecord() |
byte |
getBlipTypeMacOS()
The expected blip type under MacOS (failure to match this blip type will result in Excel converting to this format).
(MacOS 下预期的 blip 类型(未能匹配此 blip 类型将导致 Excel 转换为此格式)。)
|
byte |
getBlipTypeWin32()
The expected blip type under windows (failure to match this blip type will result in Excel converting to this format).
(windows 下预期的 blip 类型(未能匹配此 blip 类型将导致 Excel 转换为此格式)。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
java.lang.Enum |
getGenericRecordType() |
byte |
getName()
The length in characters of the blip name.
(blip 名称的字符长度。)
|
int |
getOffset()
File offset in the delay stream.
(延迟流中的文件偏移量。)
|
PictureData.PictureType |
getPictureTypeMacOS() |
PictureData.PictureType |
getPictureTypeWin32() |
java.lang.String |
getRecordName()
Subclasses should return the short name for this escher record.
(子类应返回此 escher 记录的短名称。)
|
int |
getRecordSize()
Subclasses should effeciently return the number of bytes required to serialize the record.
(子类应该有效地返回序列化记录所需的字节数。)
|
int |
getRef()
The reference count of this blip.
(此 blip 的引用计数。)
|
byte[] |
getRemainingData()
Any remaining data in this record.
(此记录中的任何剩余数据。)
|
int |
getSize()
Blip size in stream.
(流中的 Blip 大小。)
|
short |
getTag()
unused
(没用过)
|
byte[] |
getUid()
16 byte MD4 checksum.
(16 字节 MD4 校验和。)
|
byte |
getUnused2() |
byte |
getUnused3() |
byte |
getUsage()
Defines the way this blip is used.
(定义使用此 blip 的方式。)
|
int |
serialize(int offset, byte[] data, EscherSerializationListener listener)
Serializes the record to an existing byte array.
(将记录序列化为现有字节数组。)
|
void |
setBlipRecord(EscherBlipRecord blipRecord) |
void |
setBlipTypeMacOS(byte blipTypeMacOS)
Set the expected MacOS blip type
(设置预期的 MacOS blip 类型)
|
void |
setBlipTypeWin32(byte blipTypeWin32)
Set the expected win32 blip type
(设置预期的 win32 blip 类型)
|
void |
setName(byte name)
The length in characters of the blip name.
(blip 名称的字符长度。)
|
void |
setOffset(int offset)
File offset in the delay stream.
(延迟流中的文件偏移量。)
|
void |
setRef(int ref)
The reference count of this blip.
(此 blip 的引用计数。)
|
void |
setRemainingData(byte[] remainingData)
Any remaining data in this record.
(此记录中的任何剩余数据。)
|
void |
setSize(int size)
Blip size in stream.
(流中的 Blip 大小。)
|
void |
setTag(short tag)
unused
(没用过)
|
void |
setUid(byte[] uid)
16 byte MD4 checksum.
(16 字节 MD4 校验和。)
|
void |
setUnused2(byte unused2) |
void |
setUnused3(byte unused3) |
void |
setUsage(byte usage)
Defines the way this blip is used.
(定义使用此 blip 的方式。)
|
display, fillFields, getChild, getChildRecords, getGenericChildren, getInstance, getOptions, getRecordId, getVersion, isContainerRecord, readHeader, readInstance, serialize, serialize, setChildRecords, setInstance, setOptions, setRecordId, setVersion, toString, toXml, toXml
public EscherBSERecord()
public EscherBSERecord(EscherBSERecord other)
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)
EscherRecord
fillFields
in class
EscherRecord
(EscherRecord 类中的填充字段)
data
- The byte array containing the serialized escher records.
(data - 包含序列化 escher 记录的字节数组。)
offset
- The offset into the byte array.
(offset - 字节数组的偏移量。)
recordFactory
- A factory for creating new escher records.
(recordFactory - 用于创建新 escher 记录的工厂。)
public int serialize(int offset, byte[] data, EscherSerializationListener listener)
EscherRecord
serialize
in class
EscherRecord
(在类 EscherRecord 中序列化)
offset
- the offset within the byte array
(offset - 字节数组中的偏移量)
data
- the data array to serialize to
(data - 要序列化到的数据数组)
listener
- a listener for begin and end serialization events. This is useful because the serialization is hierarchical/recursive and sometimes you need to be able break into that.
(listener - 开始和结束序列化事件的侦听器。这很有用,因为序列化是分层/递归的,有时您需要能够打破它。)
public int getRecordSize()
EscherRecord
getRecordSize
in class
EscherRecord
(类 EscherRecord 中的 getRecordSize)
public java.lang.String getRecordName()
EscherRecord
getRecordName
in class
EscherRecord
(类 EscherRecord 中的 getRecordName)
public byte getBlipTypeWin32()
public PictureData.PictureType getPictureTypeWin32()
public void setBlipTypeWin32(byte blipTypeWin32)
blipTypeWin32
- win32 blip type
(blipTypeWin32 - win32 blip 类型)
public byte getBlipTypeMacOS()
public PictureData.PictureType getPictureTypeMacOS()
public void setBlipTypeMacOS(byte blipTypeMacOS)
blipTypeMacOS
- MacOS blip type
(blipTypeMacOS - MacOS blip 类型)
public byte[] getUid()
public void setUid(byte[] uid)
uid
- 16 byte MD4 checksum
(uid - 16 字节 MD4 校验和)
public short getTag()
public void setTag(short tag)
tag
- unknown tag
(标签 - 未知标签)
public int getSize()
public void setSize(int size)
size
- blip size
(大小 - 标记大小)
public int getRef()
public void setRef(int ref)
ref
- the reference count
(ref - 引用计数)
public int getOffset()
public void setOffset(int offset)
offset
- the file offset
(offset - 文件偏移量)
public byte getUsage()
public void setUsage(byte usage)
usage
- the blip usae
(用法 - blip 用法)
public byte getName()
public void setName(byte name)
name
- the blip name length
(name - blip 名称长度)
public byte getUnused2()
public void setUnused2(byte unused2)
public byte getUnused3()
public void setUnused3(byte unused3)
public EscherBlipRecord getBlipRecord()
public void setBlipRecord(EscherBlipRecord blipRecord)
public byte[] getRemainingData()
public void setRemainingData(byte[] remainingData)
remainingData
- the remaining bytes
(剩余数据 - 剩余字节)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
getGenericProperties
in class
EscherRecord
public java.lang.Enum getGenericRecordType()
public EscherBSERecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
EscherRecord
(在 EscherRecord 类中复制)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.