Methods Summary |
---|
public java.lang.Object | clone()
IterationRecord rec = new IterationRecord();
rec.field_1_iteration = field_1_iteration;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_iteration = in.readShort();
|
public boolean | getIteration()get whether or not to iterate for calculations
return (field_1_iteration == 1);
|
public int | getRecordSize()
return 6;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);
LittleEndian.putShort(data, 4 + offset, field_1_iteration);
return getRecordSize();
|
public void | setIteration(boolean iterate)set whether or not to iterate for calculations
if (iterate)
{
field_1_iteration = 1;
}
else
{
field_1_iteration = 0;
}
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[ITERATION]\n");
buffer.append(" .iteration = ").append(getIteration())
.append("\n");
buffer.append("[/ITERATION]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT An ITERATION RECORD");
}
|