Methods Summary |
---|
public java.lang.Object | clone()
FilePassRecord rec = new FilePassRecord();
rec.field_1_encryptedpassword = field_1_encryptedpassword;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_encryptedpassword = in.readInt();
//Whilst i have read in the password, HSSF currently has no plans to support/decrypt the remainder
//of this workbook
throw new RecordFormatException("HSSF does not currently support encrypted workbooks");
|
public int | getRecordSize()
return 8;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 0x4);
LittleEndian.putInt(data, 4 + offset, ( short ) field_1_encryptedpassword);
return getRecordSize();
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[FILEPASS]\n");
buffer.append(" .password = ").append(field_1_encryptedpassword)
.append("\n");
buffer.append("[/FILEPASS]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A FILEPASS RECORD");
}
|