public final class BOFRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static short |
biff2_sid |
static short |
biff3_sid |
static short |
biff4_sid |
static short |
biff5_sid |
static int |
BUILD
suggested default 0x10d3
(建议默认 0x10d3)
|
static int |
BUILD_YEAR
suggested default 0x07CC (1996)
(建议默认 0x07CC (1996))
|
static int |
HISTORY_MASK
suggested default for a normal sheet (0x41)
(普通工作表的建议默认值 (0x41))
|
static short |
sid
for BIFF8 files the BOF is 0x809.
(对于 BIFF8 文件,BOF 为 0x809。)
|
static int |
TYPE_CHART |
static int |
TYPE_EXCEL_4_MACRO |
static int |
TYPE_VB_MODULE |
static int |
TYPE_WORKBOOK |
static int |
TYPE_WORKSHEET |
static int |
TYPE_WORKSPACE_FILE |
static int |
VERSION
suggested default (0x0600 - BIFF8)
(建议的默认值 (0x0600 - BIFF8))
|
Constructor and Description |
---|
BOFRecord()
Constructs an empty BOFRecord with no fields set.
|
BOFRecord(BOFRecord other) |
BOFRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
BOFRecord |
copy() |
static BOFRecord |
createSheetBOF() |
int |
getBuild()
get the build that wrote this file
(获取编写此文件的构建)
|
int |
getBuildYear()
Year of the build that wrote this file
(编写此文件的构建年份)
|
protected int |
getDataSize() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
int |
getHistoryBitMask()
get the history bit mask (not very useful)
(获取历史位掩码(不是很有用))
|
int |
getRequiredVersion()
get the minimum version required to read this file
(获取读取此文件所需的最低版本)
|
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
int |
getType()
type of object this marks
(this 标记的对象类型)
|
int |
getVersion()
Version number - for BIFF8 should be 0x06
(版本号 - BIFF8 应为 0x06)
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
void |
setBuild(int build)
build that wrote this file
(编写此文件的构建)
|
void |
setBuildYear(int year)
Year of the build that wrote this file
(编写此文件的构建年份)
|
void |
setHistoryBitMask(int bitmask)
set the history bit mask (not very useful)
(设置历史位掩码(不是很有用))
|
void |
setRequiredVersion(int version)
set the minimum version required to read this file
(设置读取此文件所需的最低版本)
|
void |
setType(int type)
type of object this marks
(this 标记的对象类型)
|
void |
setVersion(int version)
Version number - for BIFF8 should be 0x06
(版本号 - BIFF8 应为 0x06)
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
biff2_sid
biff3_sid
biff4_sid
biff5_sid
(对于 BIFF8 文件,BOF 为 0x809。对于早期版本,请参见 biff2_sid biff3_sid biff4_sid biff5_sid)
public static final short biff2_sid
public static final short biff3_sid
public static final short biff4_sid
public static final short biff5_sid
public static final int VERSION
public static final int BUILD
public static final int BUILD_YEAR
public static final int HISTORY_MASK
public static final int TYPE_WORKBOOK
public static final int TYPE_VB_MODULE
public static final int TYPE_WORKSHEET
public static final int TYPE_CHART
public static final int TYPE_EXCEL_4_MACRO
public static final int TYPE_WORKSPACE_FILE
public BOFRecord()
public BOFRecord(BOFRecord other)
public BOFRecord(RecordInputStream in)
public static BOFRecord createSheetBOF()
public void setVersion(int version)
version
- version to be set
(version - 要设置的版本)
VERSION
public void setType(int type)
type
- type to be set
(type - 要设置的类型)
TYPE_WORKBOOK
,
TYPE_VB_MODULE
,
TYPE_WORKSHEET
,
TYPE_CHART
,
TYPE_EXCEL_4_MACRO
,
TYPE_WORKSPACE_FILE
public void setBuild(int build)
build
- build number to set
(build - 要设置的版本号)
BUILD
public void setBuildYear(int year)
year
- build year to set
(year - 要设置的构建年份)
BUILD_YEAR
public void setHistoryBitMask(int bitmask)
bitmask
- bitmask to set for the history
(位掩码 - 为历史设置的位掩码)
HISTORY_MASK
public void setRequiredVersion(int version)
version
- version to set
(version - 要设置的版本)
VERSION
public int getVersion()
VERSION
public int getType()
TYPE_WORKBOOK
,
TYPE_VB_MODULE
,
TYPE_WORKSHEET
,
TYPE_CHART
,
TYPE_EXCEL_4_MACRO
,
TYPE_WORKSPACE_FILE
public int getBuild()
BUILD
public int getBuildYear()
BUILD_YEAR
public int getHistoryBitMask()
HISTORY_MASK
public int getRequiredVersion()
VERSION
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 - 输出对象)
protected int getDataSize()
getDataSize
in class
StandardRecord
(类 StandardRecord 中的 getDataSize)
public short getSid()
Record
public BOFRecord 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.