1 19 20 package jxl.write.biff; 21 22 import jxl.biff.Type; 23 import jxl.biff.IntegerHelper; 24 import jxl.biff.WritableRecordData; 25 26 29 class ScenarioProtectRecord extends WritableRecordData 30 { 31 34 private boolean protection; 35 38 private byte[] data; 39 40 45 public ScenarioProtectRecord(boolean prot) 46 { 47 super(Type.SCENPROTECT); 48 49 protection = prot; 50 51 data = new byte[2]; 52 53 if (protection) 54 { 55 IntegerHelper.getTwoBytes(1, data, 0); 56 } 57 } 58 59 64 public byte[] getData() 65 { 66 return data; 67 } 68 } 69 | Popular Tags |