1 19 20 package jxl.read.biff; 21 22 import jxl.biff.IntegerHelper; 23 import jxl.biff.RecordData; 24 25 28 class ProtectRecord extends RecordData 29 { 30 33 private boolean prot; 34 35 40 ProtectRecord(Record t) 41 { 42 super(t); 43 byte[] data = getRecord().getData(); 44 45 int protflag = IntegerHelper.getInt(data[0], data[1]); 46 47 prot = (protflag == 1); 48 } 49 50 55 boolean isProtected() 56 { 57 return prot; 58 } 59 60 61 } 62 63 64 65 66 67 68 69 70 71 | Popular Tags |