public final class BOFRecord extends StandardRecord
Description: Somewhat of a misnomer, its used for the beginning of a set of records that have a particular purpose or subject. Used in sheets and workbooks.
REFERENCE: PG 289 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Modifier and Type | Field and Description |
---|---|
static int |
BUILD
suggested default 0x10d3
|
static int |
BUILD_YEAR |
static int |
EXCEL_2000 |
static int |
EXCEL_2002 |
static int |
EXCEL_2003 |
static int |
EXCEL_2007 |
static int |
EXCEL_2010 |
static int |
EXCEL_97 |
static int |
HISTORY_MASK |
static int |
REQ_VERSION |
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(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
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() |
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
|
String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serialize
cloneViaReserialise, serialize
public static final short 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 REQ_VERSION
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 static final int EXCEL_97
public static final int EXCEL_2000
public static final int EXCEL_2002
public static final int EXCEL_2003
public static final int EXCEL_2007
public static final int EXCEL_2010
public BOFRecord()
public BOFRecord(RecordInputStream in)
public static BOFRecord createSheetBOF()
public void setVersion(int version)
version
- version to be setVERSION
public void setType(int type)
type
- type to be setTYPE_WORKBOOK
,
TYPE_VB_MODULE
,
TYPE_WORKSHEET
,
TYPE_CHART
,
TYPE_EXCEL_4_MACRO
,
TYPE_WORKSPACE_FILE
public void setBuild(int build)
build
- build number to setBUILD
public void setBuildYear(int year)
year
- build year to setBUILD_YEAR
public void setHistoryBitMask(int bitmask)
bitmask
- bitmask to set for the historyHISTORY_MASK
public void setRequiredVersion(int version)
version
- version to setVERSION
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 String toString()
Record
public void serialize(LittleEndianOutput out)
StandardRecord
RecordBase.getRecordSize()
} minus four
( record header consiting of a 'ushort sid' and 'ushort reclength' has already been written
by thye superclass).serialize
in class StandardRecord
protected int getDataSize()
getDataSize
in class StandardRecord
public short getSid()
Record
Copyright © 2020. All rights reserved.