Methods Summary |
---|
public java.lang.Object | clone()
SeriesListRecord rec = new SeriesListRecord();
rec.field_1_seriesNumbers = field_1_seriesNumbers;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_seriesNumbers = in.readShortArray();
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + field_1_seriesNumbers.length * 2 + 2;
|
public short[] | getSeriesNumbers()Get the series numbers field for the SeriesList record.
return field_1_seriesNumbers;
|
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.putShortArray(data, 4 + offset + pos, field_1_seriesNumbers);
return getRecordSize();
|
public void | setSeriesNumbers(short[] field_1_seriesNumbers)Set the series numbers field for the SeriesList record.
this.field_1_seriesNumbers = field_1_seriesNumbers;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[SERIESLIST]\n");
buffer.append(" .seriesNumbers = ")
.append(" (").append( getSeriesNumbers() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/SERIESLIST]\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 SeriesList record");
}
|