Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_flag = in.readShort();
|
public short | getFlag()returns whether we use natural language formulas or not
return field_1_flag;
|
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, getFlag());
return getRecordSize();
|
public void | setFlag(short flag)turn the flag on or off
field_1_flag = flag;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[USESELFS]\n");
buffer.append(" .flag = ")
.append(Integer.toHexString(getFlag())).append("\n");
buffer.append("[/USESELFS]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A UseSelFS RECORD");
}
|