Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_backup = in.readShort();
|
public short | getBackup()get the backup flag
return field_1_backup;
|
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, getBackup());
return getRecordSize();
|
public void | setBackup(short backup)set the backup flag (0,1)
field_1_backup = backup;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[BACKUP]\n");
buffer.append(" .backup = ")
.append(Integer.toHexString(getBackup())).append("\n");
buffer.append("[/BACKUP]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A BACKUP RECORD");
}
|