| |
|
| java.lang.Object org.apache.poi.hssf.record.Record org.apache.poi.hssf.record.StringRecord
StringRecord | public class StringRecord extends Record (Code) | | Supports the STRING record structure.
author: Glen Stampoultzis (glens at apache.org) |
Field Summary | |
final public static short | sid |
sid | final public static short sid(Code) | | |
StringRecord | public StringRecord()(Code) | | |
StringRecord | public StringRecord(RecordInputStream in)(Code) | | Constructs a String record and sets its fields appropriately.
Parameters: in - the RecordInputstream to read the record from |
fillFields | protected void fillFields(RecordInputStream in)(Code) | | Parameters: in - the RecordInputstream to read the record from |
getRecordSize | public int getRecordSize()(Code) | | gives the current serialized size of the record. Should include the sid and reclength (4 bytes).
|
getSid | public short getSid()(Code) | | return the non static version of the id for this record.
|
getString | public String getString()(Code) | | The string represented by this record. |
isInValueSection | public boolean isInValueSection()(Code) | | |
isUnCompressedUnicode | public boolean isUnCompressedUnicode()(Code) | | is this uncompressed unicode (16bit)? Or just 8-bit compressed?
isUnicode - True for 16bit- false for 8bit |
processContinueRecord | public void processContinueRecord(byte[] data)(Code) | | |
serialize | public int serialize(int offset, byte[] data)(Code) | | called by the class that is responsible for writing this sucker.
Subclasses should implement this so that their data is passed back in a
byte array.
Parameters: offset - to begin writing at Parameters: data - byte array containing instance data number of bytes written |
setCompressedFlag | public void setCompressedFlag(byte unicode_flag)(Code) | | Sets whether the string is compressed or not
Parameters: unicode_flag - 1 = uncompressed, 0 = compressed |
setString | public void setString(String string)(Code) | | Sets the string represented by this record.
|
validateSid | protected void validateSid(short id)(Code) | | Throw a runtime exception in the event of a
record passed with a differing ID.
Parameters: id - alleged id for this record |
|
|
|