Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_recalcids = new short[ in.remaining() / 2 ];
for (int k = 0; k < field_1_recalcids.length; k++)
{
field_1_recalcids[ k ] = in.readShort();
}
|
public short[] | getRecalcIdArray()get the recalc array.
return field_1_recalcids;
|
public int | getRecordSize()
return 4 + (getRecalcIdArray().length * 2);
|
public short | getSid()
return sid;
|
public boolean | isNeeded()
return isNeeded;
|
public int | serialize(int offset, byte[] data)
short[] tabids = getRecalcIdArray();
short length = ( short ) (tabids.length * 2);
int byteoffset = 4;
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset,
(( short ) length));
// 2 (num bytes in a short)
for (int k = 0; k < (length / 2); k++)
{
LittleEndian.putShort(data, byteoffset + offset, tabids[ k ]);
byteoffset += 2;
}
return getRecordSize();
|
public void | setIsNeeded(boolean isNeeded)
this.isNeeded = isNeeded;
|
public void | setRecalcIdArray(short[] array)set the recalc array.
field_1_recalcids = array;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[RECALCID]\n");
buffer.append(" .elements = ").append(field_1_recalcids.length)
.append("\n");
for (int k = 0; k < field_1_recalcids.length; k++)
{
buffer.append(" .element_" + k + " = ")
.append(field_1_recalcids[ k ]).append("\n");
}
buffer.append("[/RECALCID]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A RECALCID RECORD");
}
|