Methods Summary |
---|
public java.lang.Object | clone()
CalcCountRecord rec = new CalcCountRecord();
rec.field_1_iterations = field_1_iterations;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_iterations = in.readShort();
|
public short | getIterations()get the number of iterations to perform
return field_1_iterations;
|
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, getIterations());
return getRecordSize();
|
public void | setIterations(short iterations)set the number of iterations to perform
field_1_iterations = iterations;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[CALCCOUNT]\n");
buffer.append(" .iterations = ")
.append(Integer.toHexString(getIterations())).append("\n");
buffer.append("[/CALCCOUNT]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT An Calc Count RECORD");
}
|