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