Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)called by the constructor, should set class level fields. Should throw
runtime exception for bad/icomplete data.
field_1_index_to_supbook = in.readShort();
field_2_index_to_first_supbook_sheet = in.readShort();
field_3_index_to_last_supbook_sheet = in.readShort();
|
public short | getIndexToFirstSupBook()gets the index to first sheet from supbook
return field_2_index_to_first_supbook_sheet;
|
public short | getIndexToLastSupBook()gets the index to last sheet in supbook
return field_3_index_to_last_supbook_sheet;
|
public short | getIndexToSupBook()gets the index to sup book
return field_1_index_to_supbook;
|
public int | getRecordSize()returns the record size
return 6;
|
public short | getSid()return the non static version of the id for this record.
return sid;
|
public int | serialize(int offset, byte[] data)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.
LittleEndian.putShort(data, 0 + offset, getIndexToSupBook());
LittleEndian.putShort(data, 2 + offset, getIndexToFirstSupBook());
LittleEndian.putShort(data, 4 + offset, getIndexToLastSupBook());
return getRecordSize();
|
public void | setIndexToFirstSupBook(short index)sets the index to first sheet in supbook
field_2_index_to_first_supbook_sheet = index;
|
public void | setIndexToLastSupBook(short index)sets the index to last sheet in supbook
field_3_index_to_last_supbook_sheet = index;
|
public void | setIndexToSupBook(short index)Sets the Index to the sup book
field_1_index_to_supbook = index;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append(" supbookindex =").append(getIndexToSupBook()).append('\n");
buffer.append(" 1stsbindex =").append(getIndexToFirstSupBook()).append('\n");
buffer.append(" lastsbindex =").append(getIndexToLastSupBook()).append('\n");
return buffer.toString();
|
protected void | validateSid(short id)called by constructor, should throw runtime exception in the event of a
record passed with a differing ID.
// do nothing
|