Package org.apache.poi.hssf.record
Class OldLabelRecord
java.lang.Object
org.apache.poi.hssf.record.OldCellRecord
org.apache.poi.hssf.record.OldLabelRecord
Biff2 - Biff 4 Label Record (0x0004 / 0x0204) - read only support for
strings stored directly in the cell, from the older file formats that
didn't use
LabelSSTRecord
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Append specific debug info (used byOldCellRecord.toString()
for the value contained in this record.protected String
Gets the debug info BIFF record type name (used byOldCellRecord.toString()
.int
short
get the number of characters this string containsgetValue()
Get the String of the cellint
serialize
(int offset, byte[] data) Not supportedvoid
setCodePage
(CodepageRecord codepage) Methods inherited from class org.apache.poi.hssf.record.OldCellRecord
getCellAttrs, getColumn, getRow, getSid, getXFIndex, isBiff2, toString
-
Field Details
-
biff2_sid
public static final short biff2_sid- See Also:
-
biff345_sid
public static final short biff345_sid- See Also:
-
-
Constructor Details
-
OldLabelRecord
- Parameters:
in
- the RecordInputstream to read the record from
-
-
Method Details
-
setCodePage
-
getStringLength
public short getStringLength()get the number of characters this string contains- Returns:
- number of characters
-
getValue
Get the String of the cell- Returns:
- the String of the cell
-
serialize
public int serialize(int offset, byte[] data) Not supported- Parameters:
offset
- not supporteddata
- not supported- Returns:
- not supported
-
getRecordSize
public int getRecordSize() -
appendValueText
Description copied from class:OldCellRecord
Append specific debug info (used byOldCellRecord.toString()
for the value contained in this record. Trailing new-line should not be appended (superclass does that).- Specified by:
appendValueText
in classOldCellRecord
- Parameters:
sb
- the StringBuilder to append to
-
getRecordName
Description copied from class:OldCellRecord
Gets the debug info BIFF record type name (used byOldCellRecord.toString()
.- Specified by:
getRecordName
in classOldCellRecord
- Returns:
- the debug info BIFF record type name
-