public class ExOleObjStg extends PositionDependentRecordAtom implements PersistRecord
Modifier | Constructor and Description |
---|---|
|
ExOleObjStg()
Constructs a new empty storage container.
(构造一个新的空存储容器。)
|
protected |
ExOleObjStg(byte[] source, int start, int len)
Constructs the link related atom record from its source data.
(从其源数据构造与链接相关的原子记录。)
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getData()
Opens an input stream which will decompress the data on the fly.
(打开一个输入流,它将动态解压缩数据。)
|
int |
getDataLength()
Gets the uncompressed length of the data.
(获取数据的未压缩长度。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getPersistId()
Fetch our sheet ID, as found from a PersistPtrHolder.
(从 PersistPtrHolder 中获取我们的工作表 ID。)
|
byte[] |
getRawData() |
int |
getRecordInstance()
Gets the record instance from the header
(从表头获取记录实例)
|
long |
getRecordType()
Gets the record type.
(获取记录类型。)
|
boolean |
isCompressed() |
void |
setData(byte[] data)
Sets the embedded data.
(设置嵌入数据。)
|
void |
setPersistId(int id)
Set our sheet ID, as found from a PersistPtrHolder
(设置我们的工作表 ID,从 PersistPtrHolder 中找到)
|
void |
updateOtherRecordReferences(java.util.Map<java.lang.Integer,java.lang.Integer> oldToNewReferencesLookup)
Offer the record the list of records that have changed their location as part of the writeout.
(为记录提供已更改位置的记录列表作为写出的一部分。)
|
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk.
(将记录的内容写回,以便将其写入磁盘。)
|
getLastOnDiskOffset, setLastOnDiskOffset
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
public ExOleObjStg()
protected ExOleObjStg(byte[] source, int start, int len)
source
- the source data as a byte array.
(source - 作为字节数组的源数据。)
start
- the start offset into the byte array.
(start - 字节数组的起始偏移量。)
len
- the length of the slice in the byte array.
(len - 字节数组中切片的长度。)
public boolean isCompressed()
public int getDataLength()
public java.io.InputStream getData()
public byte[] getRawData()
public void setData(byte[] data) throws java.io.IOException
data
- the embedded data.
(data - 嵌入的数据。)
java.io.IOException
(java.io.IOException)
public long getRecordType()
getRecordType
in class
Record
(类 Record 中的 getRecordType)
public int getRecordInstance()
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public int getPersistId()
getPersistId
in interface
PersistRecord
(接口 PersistRecord 中的 getPersistId)
public void setPersistId(int id)
setPersistId
in interface
PersistRecord
(接口 PersistRecord 中的 setPersistId)
public void updateOtherRecordReferences(java.util.Map<java.lang.Integer,java.lang.Integer> oldToNewReferencesLookup)
PositionDependentRecordAtom
updateOtherRecordReferences
in interface
PositionDependentRecord
(接口 PositionDependentRecord 中的 updateOtherRecordReferences)
updateOtherRecordReferences
in class
PositionDependentRecordAtom
(类 PositionDependentRecordAtom 中的 updateOtherRecordReferences)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.