Package org.apache.poi.hssf.record
Class OldLabelRecord
- java.lang.Object
-
- org.apache.poi.hssf.record.OldCellRecord
-
- org.apache.poi.hssf.record.OldLabelRecord
-
- All Implemented Interfaces:
GenericRecord
public final class OldLabelRecord extends OldCellRecord
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 useLabelSSTRecord
-
-
Field Summary
Fields Modifier and Type Field Description static short
biff2_sid
static short
biff345_sid
-
Constructor Summary
Constructors Constructor Description OldLabelRecord(RecordInputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Supplier<?>>
getGenericProperties()
HSSFRecordTypes
getGenericRecordType()
int
getRecordSize()
short
getStringLength()
get the number of characters this string containsString
getValue()
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
-
-
-
Field Detail
-
biff2_sid
public static final short biff2_sid
- See Also:
- Constant Field Values
-
biff345_sid
public static final short biff345_sid
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OldLabelRecord
public OldLabelRecord(RecordInputStream in)
- Parameters:
in
- the RecordInputstream to read the record from
-
-
Method Detail
-
setCodePage
public void setCodePage(CodepageRecord codepage)
-
getStringLength
public short getStringLength()
get the number of characters this string contains- Returns:
- number of characters
-
getValue
public String 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()
-
getGenericRecordType
public HSSFRecordTypes getGenericRecordType()
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericProperties
in interfaceGenericRecord
- Overrides:
getGenericProperties
in classOldCellRecord
-
-