Methods Summary |
---|
public java.lang.Object | clone()
SeriesTextRecord rec = new SeriesTextRecord();
rec.field_1_id = field_1_id;
rec.field_2_textLength = field_2_textLength;
rec.field_3_undocumented = field_3_undocumented;
rec.field_4_text = field_4_text;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_id = in.readShort();
field_2_textLength = in.readByte();
field_3_undocumented = in.readByte();
field_4_text = in.readUnicodeLEString(field_2_textLength);
|
public short | getId()Get the id field for the SeriesText record.
return field_1_id;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 2 + 1 + 1 + (field_2_textLength *2);
|
public short | getSid()
return sid;
|
public java.lang.String | getText()Get the text field for the SeriesText record.
return field_4_text;
|
public byte | getTextLength()Get the text length field for the SeriesText record.
return field_2_textLength;
|
public byte | getUndocumented()Get the undocumented field for the SeriesText record.
return field_3_undocumented;
|
public int | serialize(int offset, byte[] data)
int pos = 0;
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));
LittleEndian.putShort(data, 4 + offset + pos, field_1_id);
data[ 6 + offset + pos ] = field_2_textLength;
data[ 7 + offset + pos ] = field_3_undocumented;
StringUtil.putUnicodeLE(field_4_text, data, 8 + offset + pos);
return getRecordSize();
|
public void | setId(short field_1_id)Set the id field for the SeriesText record.
this.field_1_id = field_1_id;
|
public void | setText(java.lang.String field_4_text)Set the text field for the SeriesText record.
this.field_4_text = field_4_text;
|
public void | setTextLength(byte field_2_textLength)Set the text length field for the SeriesText record.
this.field_2_textLength = field_2_textLength;
|
public void | setUndocumented(byte field_3_undocumented)Set the undocumented field for the SeriesText record.
this.field_3_undocumented = field_3_undocumented;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[SERIESTEXT]\n");
buffer.append(" .id = ")
.append("0x").append(HexDump.toHex( getId ()))
.append(" (").append( getId() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .textLength = ")
.append("0x").append(HexDump.toHex( getTextLength ()))
.append(" (").append( getTextLength() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .undocumented = ")
.append("0x").append(HexDump.toHex( getUndocumented ()))
.append(" (").append( getUndocumented() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .text = ")
.append(" (").append( getText() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/SERIESTEXT]\n");
return buffer.toString();
|
protected void | validateSid(short id)Checks the sid matches the expected side for this record
if (id != sid)
{
throw new RecordFormatException("Not a SeriesText record");
}
|