first commit
This commit is contained in:
19
hrmsEjb/jxl/read/biff/ProtectRecord.java
Normal file
19
hrmsEjb/jxl/read/biff/ProtectRecord.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package jxl.read.biff;
|
||||
|
||||
import jxl.biff.IntegerHelper;
|
||||
import jxl.biff.RecordData;
|
||||
|
||||
class ProtectRecord extends RecordData {
|
||||
private boolean prot;
|
||||
|
||||
ProtectRecord(Record t) {
|
||||
super(t);
|
||||
byte[] data = getRecord().getData();
|
||||
int protflag = IntegerHelper.getInt(data[0], data[1]);
|
||||
this.prot = (protflag == 1);
|
||||
}
|
||||
|
||||
boolean isProtected() {
|
||||
return this.prot;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user