Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)called by the constructor, should set class level fields. Should throw
runtime exception for bad/icomplete data.
//field_1_row = LittleEndian.getShort(data, 0 + offset);
field_1_row = in.readUShort();
field_2_first_col = in.readShort();
field_3_rks = parseRKs(in);
field_4_last_col = in.readShort();
|
public short | getFirstColumn()starting column (first cell this holds in the row)
return field_2_first_col;
|
public short | getLastColumn()ending column (last cell this holds in the row)
return field_4_last_col;
|
public int | getNumColumns()get the number of columns this contains (last-first +1)
return field_4_last_col - field_2_first_col + 1;
|
public double | getRKNumberAt(int coffset)returns the rk number for column (coffset = column - field_2_first_col)
return RKUtil.decodeNumber((( RkRec ) field_3_rks.get(coffset)).rk);
|
public int | getRow()
return field_1_row;
|
public short | getSid()
return sid;
|
public short | getXFAt(int coffset)returns the xf index for column (coffset = column - field_2_first_col)
return (( RkRec ) field_3_rks.get(coffset)).xf;
|
private java.util.ArrayList | parseRKs(org.apache.poi.hssf.record.RecordInputStream in)
ArrayList retval = new ArrayList();
while ((in.remaining()-2) > 0) {
RkRec rec = new RkRec();
rec.xf = in.readShort();
rec.rk = in.readInt();
retval.add(rec);
}
return retval;
|
public int | serialize(int offset, byte[] data)
throw new RecordFormatException(
"Sorry, you can't serialize a MulRK in this release");
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[MULRK]\n");
buffer.append("firstcol = ")
.append(Integer.toHexString(getFirstColumn())).append("\n");
buffer.append(" lastcol = ")
.append(Integer.toHexString(getLastColumn())).append("\n");
for (int k = 0; k < getNumColumns(); k++)
{
buffer.append("xf").append(k).append(" = ")
.append(Integer.toHexString(getXFAt(k))).append("\n");
buffer.append("rk").append(k).append(" = ")
.append(getRKNumberAt(k)).append("\n");
}
buffer.append("[/MULRK]\n");
return buffer.toString();
|
protected void | validateSid(short id)called by constructor, should throw runtime exception in the event of a
record passed with a differing ID.
if (id != sid)
{
throw new RecordFormatException("Not a MulRKRecord!");
}
|