Methods Summary |
---|
public java.lang.Object | clone()
SeriesIndexRecord rec = new SeriesIndexRecord();
rec.field_1_index = field_1_index;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_index = in.readShort();
|
public short | getIndex()Get the index field for the SeriesIndex record.
return field_1_index;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 2;
|
public short | getSid()
return sid;
|
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_index);
return getRecordSize();
|
public void | setIndex(short field_1_index)Set the index field for the SeriesIndex record.
this.field_1_index = field_1_index;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[SINDEX]\n");
buffer.append(" .index = ")
.append("0x").append(HexDump.toHex( getIndex ()))
.append(" (").append( getIndex() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/SINDEX]\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 SeriesIndex record");
}
|