Top Description Fields Constructors Methods
org.apache.poi.hssf.record

public final Class SupBookRecord

extends StandardRecord
Class Inheritance
Imports
java.util.Map, java.util.function.Supplier, org.apache.logging.log4j.LogManager, .Logger, org.apache.poi.util.GenericRecordUtil, .LittleEndianOutput, .StringUtil

A External Workbook Description (Supplemental Book). Its only a dummy record for making new ExternSheet Record

Field Summary

Modifier and TypeField and Description
private final boolean
pack-priv static final char
pack-priv static final char
pack-priv static final char
pack-priv static final char
pack-priv static final char
pack-priv static final char
pack-priv static final char
pack-priv static final char
private short
private String
private final String[]
private static final Logger
pack-priv static final String
public static final short
private static final short
private static final short
private static final short

Constructor Summary

AccessConstructor and Description
public
private
SupBookRecord(boolean isAddInFuncs, short numberOfSheets)

public
SupBookRecord(String url, String[] sheetNames)

public
SupBookRecord(RecordInputStream
the stream to read from
in
)

called by the constructor, should set class level fields.

Method Summary

Modifier and TypeMethod and Description
public SupBookRecord
public static SupBookRecord
public static SupBookRecord
public static SupBookRecord
createInternalReferences(short numberOfSheets)

private static String
decodeFileName(String encodedUrl)

protected int
public Map<String, Supplier<?>>
public HSSFRecordTypes
public short
public String[]
public short
getSid()

Implements abstract org.apache.poi.hssf.record.Record.getSid.

return the non static version of the id for this record.

public String
public boolean
public boolean
public boolean
public void
serialize(LittleEndianOutput
the output object
out
)

Implements abstract org.apache.poi.hssf.record.StandardRecord.serialize.

Write the data content of this BIFF record.

public void
setNumberOfSheets(short number)

public void
setURL(String pUrl)

Inherited from org.apache.poi.hssf.record.StandardRecord:
getRecordSizeserialize

Field Detail

_isAddInFunctionsback to summary
private final boolean _isAddInFunctions
CH_ALT_STARTUP_DIRback to summary
pack-priv static final char CH_ALT_STARTUP_DIR
CH_DOWN_DIRback to summary
pack-priv static final char CH_DOWN_DIR
CH_LIB_DIRback to summary
pack-priv static final char CH_LIB_DIR
CH_LONG_VOLUMEback to summary
pack-priv static final char CH_LONG_VOLUME
CH_SAME_VOLUMEback to summary
pack-priv static final char CH_SAME_VOLUME
CH_STARTUP_DIRback to summary
pack-priv static final char CH_STARTUP_DIR
CH_UP_DIRback to summary
pack-priv static final char CH_UP_DIR
CH_VOLUMEback to summary
pack-priv static final char CH_VOLUME
field_1_number_of_sheetsback to summary
private short field_1_number_of_sheets
field_2_encoded_urlback to summary
private String field_2_encoded_url
field_3_sheet_namesback to summary
private final String[] field_3_sheet_names
LOGback to summary
private static final Logger LOG
PATH_SEPERATORback to summary
pack-priv static final String PATH_SEPERATOR
sidback to summary
public static final short sid
SMALL_RECORD_SIZEback to summary
private static final short SMALL_RECORD_SIZE
TAG_ADD_IN_FUNCTIONSback to summary
private static final short TAG_ADD_IN_FUNCTIONS
TAG_INTERNAL_REFERENCESback to summary
private static final short TAG_INTERNAL_REFERENCES

Constructor Detail

SupBookRecordback to summary
public SupBookRecord(SupBookRecord other)
SupBookRecordback to summary
private SupBookRecord(boolean isAddInFuncs, short numberOfSheets)
SupBookRecordback to summary
public SupBookRecord(String url, String[] sheetNames)
SupBookRecordback to summary
public SupBookRecord(RecordInputStream in)

called by the constructor, should set class level fields. Should throw runtime exception for bad/incomplete data.

Parameters
in:RecordInputStream

the stream to read from

Method Detail

copyback to summary
public SupBookRecord copy()

Implements abstract org.apache.poi.hssf.record.StandardRecord.copy.

Implements org.apache.poi.common.Duplicatable.copy.

Returns:SupBookRecord

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

Annotations
@Override
createAddInFunctionsback to summary
public static SupBookRecord createAddInFunctions()
createExternalReferencesback to summary
public static SupBookRecord createExternalReferences(String url, String[] sheetNames)
createInternalReferencesback to summary
public static SupBookRecord createInternalReferences(short numberOfSheets)
decodeFileNameback to summary
private static String decodeFileName(String encodedUrl)
getDataSizeback to summary
protected int getDataSize()

Implements abstract org.apache.poi.hssf.record.StandardRecord.getDataSize.

getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
getGenericRecordTypeback to summary
public HSSFRecordTypes getGenericRecordType()

Overrides default org.apache.poi.common.usermodel.GenericRecord.getGenericRecordType.

Implements abstract org.apache.poi.hssf.record.Record.getGenericRecordType.

Annotations
@Override
getNumberOfSheetsback to summary
public short getNumberOfSheets()
getSheetNamesback to summary
public String[] getSheetNames()
getSidback to summary
public short getSid()

Implements abstract org.apache.poi.hssf.record.Record.getSid.

Doc from org.apache.poi.hssf.record.Record.getSid.

return the non static version of the id for this record.

Returns:short

he id for this record

getURLback to summary
public String getURL()
isAddInFunctionsback to summary
public boolean isAddInFunctions()
isExternalReferencesback to summary
public boolean isExternalReferences()
isInternalReferencesback to summary
public boolean isInternalReferences()
serializeback to summary
public void serialize(LittleEndianOutput out)

Implements abstract org.apache.poi.hssf.record.StandardRecord.serialize.

Doc from org.apache.poi.hssf.record.StandardRecord.serialize.

Write the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.

The number of bytes written must equal the record size reported by org.apache.poi.hssf.record.Record#getRecordSize()} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).

Parameters
out:LittleEndianOutput

the output object

setNumberOfSheetsback to summary
public void setNumberOfSheets(short number)
setURLback to summary
public void setURL(String pUrl)