This holds all the strings for LabelSSTRecords.
org.apache.poi.hssf.record.LabelSSTRecord , org.apache.poi.hssf.record.ContinueRecord
| Modifier and Type | Field and Description |
|---|---|
| private int[] | bucketAbsoluteOffsets
Offsets from the beginning of the SST record (even across continuations) |
| private int[] | bucketRelativeOffsets
Offsets relative the start of the current SST or continue record |
| private final SSTDeserializer | |
| private static final UnicodeString | |
| private int | field_1_num_strings
union of strings in the SST and EXTSST |
| private int | field_2_num_unique_strings
according to docs ONLY SST |
| private final IntMapper | |
| public static final short |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | SSTRecord(RecordInputStream
the RecordInputStream to read the record from in)Fill the fields from the data The data consists of sets of string data. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the index of that string in the tablestring to be added string)Add a string. |
| public int | Returns: The size of the ExtSST record in bytes.Calculates the size in bytes of the EXTSST record as it would be if the record was serialized. |
| public SSTRecord | copy()
Implements abstract org. Implements org.
|
| pack-priv int | |
| public ExtSSTRecord | Returns: The new SST record.The offset in the stream to the start of the
SST record. sstOffset)Creates an extended string record based on the current contents of the current SST record. |
| public Map | |
| public HSSFRecordTypes | getGenericRecordType()
Overrides default org. Implements abstract org.
|
| public int | |
| public int | |
| public short | getSid()
Implements abstract org. return the non static version of the id for this record. |
| public UnicodeString | Returns: the desired stringindex into the array of strings id)Get a particular string by its index |
| pack-priv Iterator | |
| protected void | serialize(ContinuableRecordOutput
a data output stream out)Implements abstract org. Serializes this record's content to the supplied data output. |
| bucketAbsoluteOffsets | back to summary |
|---|---|
| private int[] bucketAbsoluteOffsets Offsets from the beginning of the SST record (even across continuations) | |
| bucketRelativeOffsets | back to summary |
|---|---|
| private int[] bucketRelativeOffsets Offsets relative the start of the current SST or continue record | |
| deserializer | back to summary |
|---|---|
| private final SSTDeserializer deserializer | |
| EMPTY_STRING | back to summary |
|---|---|
| private static final UnicodeString EMPTY_STRING | |
| field_1_num_strings | back to summary |
|---|---|
| private int field_1_num_strings union of strings in the SST and EXTSST | |
| field_2_num_unique_strings | back to summary |
|---|---|
| private int field_2_num_unique_strings according to docs ONLY SST | |
| field_3_strings | back to summary |
|---|---|
| private final IntMapper<UnicodeString> field_3_strings | |
| sid | back to summary |
|---|---|
| public static final short sid | |
| SSTRecord | back to summary |
|---|---|
| public SSTRecord() | |
| SSTRecord | back to summary |
|---|---|
| public SSTRecord(SSTRecord other) | |
| SSTRecord | back to summary | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public SSTRecord(RecordInputStream in) Fill the fields from the data The data consists of sets of string data. This string data is arranged as follows:
The string_flag is bit mapped as follows:
We can handle eating the overhead associated with bits 2 or 3 (or both) being set, but we have no idea what to do with the associated data. The UnicodeString class can handle the byte[] vs short[] nature of the actual string data
| ||||||||||||||||||||||||||||
| addString | back to summary |
|---|---|
| public int addString(UnicodeString string) Add a string.
| |
| calcExtSSTRecordSize | back to summary |
|---|---|
| public int calcExtSSTRecordSize() Calculates the size in bytes of the EXTSST record as it would be if the record was serialized.
| |
| copy | back to summary |
|---|---|
| public SSTRecord copy() Implements abstract org. Implements org.
| |
| countStrings | back to summary |
|---|---|
pack-priv int countStrings()
| |
| createExtSSTRecord | back to summary |
|---|---|
| public ExtSSTRecord createExtSSTRecord(int sstOffset) Creates an extended string record based on the current contents of the current SST record. The offset within the stream to the SST record is required because the extended string record points directly to the strings in the SST record. Note THIS FUNCTION MUST ONLY BE CALLED AFTER THE SST RECORD HAS BEEN SERIALIZED.
| |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getGenericRecordType | back to summary |
|---|---|
| public HSSFRecordTypes getGenericRecordType() Overrides default org. Implements abstract org.
| |
| getNumStrings | back to summary |
|---|---|
public int getNumStrings()
| |
| getNumUniqueStrings | back to summary |
|---|---|
public int getNumUniqueStrings()
| |
| getSid | back to summary |
|---|---|
| public short getSid() Implements abstract org. Doc from org. return the non static version of the id for this record.
| |
| getString | back to summary |
|---|---|
| public UnicodeString getString(int id) Get a particular string by its index
| |
| getStrings | back to summary |
|---|---|
pack-priv Iterator
| |
| serialize | back to summary |
|---|---|
| protected void serialize(ContinuableRecordOutput out) Implements abstract org. Doc from org. Serializes this record's content to the supplied data output.
The standard BIFF header (ushort sid, ushort size) has been handled by the superclass, so
only BIFF data should be written by this method. Simple data types can be written with the
standard
| |