Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_precision = in.readShort();
|
public boolean | getFullPrecision()get whether to use full precision or just skew all you figures all to hell.
return (field_1_precision == 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 ) 0x02)); // 2 bytes (6 total)
LittleEndian.putShort(data, 4 + offset, field_1_precision);
return getRecordSize();
|
public void | setFullPrecision(boolean fullprecision)set whether to use full precision or just skew all you figures all to hell.
if (fullprecision == true)
{
field_1_precision = 1;
}
else
{
field_1_precision = 0;
}
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[PRECISION]\n");
buffer.append(" .precision = ").append(getFullPrecision())
.append("\n");
buffer.append("[/PRECISION]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A PRECISION RECORD");
}
|