Methods Summary |
---|
public java.lang.Object | clone()
RefModeRecord rec = new RefModeRecord();
rec.field_1_mode = field_1_mode;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_mode = in.readShort();
|
public short | getMode()get the reference mode to use (HSSF uses/assumes A1)
return field_1_mode;
|
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, getMode());
return getRecordSize();
|
public void | setMode(short mode)set the reference mode to use (HSSF uses/assumes A1)
field_1_mode = mode;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[REFMODE]\n");
buffer.append(" .mode = ")
.append(Integer.toHexString(getMode())).append("\n");
buffer.append("[/REFMODE]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT An RefMode RECORD");
}
|