jxl.write.biff
Class PasswordRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.biff.WritableRecordData
              |
              +--jxl.write.biff.PasswordRecord
All Implemented Interfaces:
ByteData

class PasswordRecord
extends WritableRecordData

A password record. Thanks to Michael Matthews for sending me the code to actually store the password for the sheet


Field Summary
private  byte[] data
          The binary data
private  java.lang.String password
          The password
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
PasswordRecord(int ph)
          Constructor
PasswordRecord(java.lang.String pw)
          Constructor
 
Method Summary
 byte[] getData()
          Gets the binary data for output to file
private  int rotLeft15Bit(int val, int rotate)
          Rotate the value by 15 bits.
 
Methods inherited from class jxl.biff.WritableRecordData
getBytes
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

password

private java.lang.String password
The password

data

private byte[] data
The binary data
Constructor Detail

PasswordRecord

public PasswordRecord(java.lang.String pw)
Constructor
Parameters:
pw - the password

PasswordRecord

public PasswordRecord(int ph)
Constructor
Parameters:
ph - the password hash code
Method Detail

getData

public byte[] getData()
Gets the binary data for output to file
Overrides:
getData in class WritableRecordData
Returns:
the binary data

rotLeft15Bit

private int rotLeft15Bit(int val,
                         int rotate)
Rotate the value by 15 bits. Thanks to Michael for this
Parameters:
val -  
rotate -  
Returns:
int