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
|
static int |
BUILD_YEAR
suggested default 0x07CC (1996)
|
static int |
HISTORY_MASK
suggested default for a normal sheet (0x41)
|
static short |
sid
for BIFF8 files the BOF is 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)
|
| 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.
|
int |
getType()
type of object this marks
|
int |
getVersion()
Version number - for BIFF8 should be 0x06
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
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
|
void |
setVersion(int version)
Version number - for BIFF8 should be 0x06
|
getRecordSize, serializecloneViaReserialise, serialize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericChildrenpublic static final short 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 setVERSIONpublic void setType(int type)
type - type to be setTYPE_WORKBOOK,
TYPE_VB_MODULE,
TYPE_WORKSHEET,
TYPE_CHART,
TYPE_EXCEL_4_MACRO,
TYPE_WORKSPACE_FILEpublic void setBuild(int build)
build - build number to setBUILDpublic void setBuildYear(int year)
year - build year to setBUILD_YEARpublic void setHistoryBitMask(int bitmask)
bitmask - bitmask to set for the historyHISTORY_MASKpublic void setRequiredVersion(int version)
version - version to setVERSIONpublic int getVersion()
VERSIONpublic int getType()
TYPE_WORKBOOK,
TYPE_VB_MODULE,
TYPE_WORKSHEET,
TYPE_CHART,
TYPE_EXCEL_4_MACRO,
TYPE_WORKSPACE_FILEpublic int getBuild()
BUILDpublic int getBuildYear()
BUILD_YEARpublic int getHistoryBitMask()
HISTORY_MASKpublic int getRequiredVersion()
VERSIONpublic 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 StandardRecordout - the output objectprotected int getDataSize()
getDataSize in class StandardRecordpublic short getSid()
Recordpublic BOFRecord copy()
copy in interface Duplicatablecopy in class StandardRecordpublic HSSFRecordTypes getGenericRecordType()
getGenericRecordType in interface GenericRecordgetGenericRecordType in class Recordpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.