public final class BoundSheetRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
BoundSheetRecord(BoundSheetRecord other) |
BoundSheetRecord(RecordInputStream in)
UTF8: sid + len + bof + flags + len(str) + unicode + str 2 + 2 + 4 + 2 + 1 + 1 + len(str) UNICODE: sid + len + bof + flags + len(str) + unicode + str 2 + 2 + 4 + 2 + 1 + 1 + 2 * len(str)
|
BoundSheetRecord(java.lang.String sheetname) |
Modifier and Type | Method and Description |
---|---|
BoundSheetRecord |
copy() |
protected int |
getDataSize() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
int |
getPositionOfBof()
get the offset in bytes of the Beginning of File Marker within the HSSF Stream part of the POIFS file
(获取 POIFS 文件的 HSSF 流部分中文件开头标记的字节偏移量)
|
java.lang.String |
getSheetname()
get the sheetname for this sheet.
(获取此工作表的工作表名称。)
|
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
boolean |
isHidden()
Is the sheet hidden? Different from very hidden
(表是隐藏的吗?不同于非常隐蔽)
|
boolean |
isVeryHidden()
Is the sheet very hidden? Different from (normal) hidden
(床单是不是很隐蔽?不同于(正常)隐藏)
|
static BoundSheetRecord[] |
orderByBofPosition(java.util.List<BoundSheetRecord> boundSheetRecords)
Converts a List of
BoundSheetRecord s to an array and sorts by the position of their BOFs.
(将 BoundSheetRecords 列表转换为数组并按其 BOF 的位置排序。)
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
void |
setHidden(boolean hidden)
Is the sheet hidden? Different from very hidden
(表是隐藏的吗?不同于非常隐蔽)
|
void |
setPositionOfBof(int pos)
set the offset in bytes of the Beginning of File Marker within the HSSF Stream part of the POIFS file
(在 POIFS 文件的 HSSF 流部分中设置文件开头标记的字节偏移量)
|
void |
setSheetname(java.lang.String sheetName)
Set the sheetname for this sheet.
(设置此工作表的工作表名称。)
|
void |
setVeryHidden(boolean veryHidden)
Is the sheet very hidden? Different from (normal) hidden
(床单是不是很隐蔽?不同于(正常)隐藏)
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public BoundSheetRecord(java.lang.String sheetname)
public BoundSheetRecord(BoundSheetRecord other)
public BoundSheetRecord(RecordInputStream in)
in
- the record stream to read from
(in - 要读取的记录流)
public void setPositionOfBof(int pos)
pos
- offset in bytes
(pos - 以字节为单位的偏移量)
public void setSheetname(java.lang.String sheetName)
sheetName
- the name of the sheet
(sheetName - 工作表的名称)
java.lang.IllegalArgumentException
- if sheet name will cause excel to crash.
(java.lang.IllegalArgumentException - 如果工作表名称会导致 excel 崩溃。)
for a safe way to create valid names
public int getPositionOfBof()
public java.lang.String getSheetname()
protected int getDataSize()
getDataSize
in class
StandardRecord
(类 StandardRecord 中的 getDataSize)
public void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by RecordBase.getRecordSize()
} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).
serialize
in class
StandardRecord
(在 StandardRecord 类中序列化)
out
- the output object
(out - 输出对象)
public short getSid()
Record
public boolean isHidden()
true
if hidden
(如果隐藏则为真)
public void setHidden(boolean hidden)
hidden
-
true
if hidden
(hidden - 如果隐藏则为真)
public boolean isVeryHidden()
true
if very hidden
(如果非常隐藏,则为真)
public void setVeryHidden(boolean veryHidden)
veryHidden
-
true
if very hidden
(veryHidden - 如果非常隐藏则为真)
public static BoundSheetRecord[] orderByBofPosition(java.util.List<BoundSheetRecord> boundSheetRecords)
BoundSheetRecord
s to an array and sorts by the position of their BOFs.
(将 BoundSheetRecords 列表转换为数组并按其 BOF 的位置排序。)
boundSheetRecords
- the boundSheetRecord list to arrayify
(boundSheetRecords - 要排列的 boundSheetRecord 列表)
public BoundSheetRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
StandardRecord
(在 StandardRecord 类中复制)
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
getGenericRecordType
in class
Record
(类 Record 中的 getGenericRecordType)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.