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_xfs = parseXFs(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 int | getRow()get the row number of the cells this represents
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 field_3_xfs[ coffset ];
|
private short[] | parseXFs(org.apache.poi.hssf.record.RecordInputStream in)
short[] retval = new short[ (in.remaining() - 2) / 2 ];
for (int idx = 0; idx < retval.length;idx++)
{
retval[idx] = in.readShort();
}
return retval;
|
public int | serialize(int offset, byte[] data)
throw new RecordFormatException(
"Sorry, you can't serialize a MulBlank in this release");
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[MULBLANK]\n");
buffer.append("row = ")
.append(Integer.toHexString(getRow())).append("\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("[/MULBLANK]\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 MulBlankRecord!");
}
|