first commit
This commit is contained in:
23
hrmsEjb/jxl/write/biff/ObjectProtectRecord.java
Normal file
23
hrmsEjb/jxl/write/biff/ObjectProtectRecord.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package jxl.write.biff;
|
||||
|
||||
import jxl.biff.IntegerHelper;
|
||||
import jxl.biff.Type;
|
||||
import jxl.biff.WritableRecordData;
|
||||
|
||||
class ObjectProtectRecord extends WritableRecordData {
|
||||
private boolean protection;
|
||||
|
||||
private byte[] data;
|
||||
|
||||
public ObjectProtectRecord(boolean prot) {
|
||||
super(Type.OBJPROTECT);
|
||||
this.protection = prot;
|
||||
this.data = new byte[2];
|
||||
if (this.protection)
|
||||
IntegerHelper.getTwoBytes(1, this.data, 0);
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
return this.data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user