1 19 20 package jxl.write.biff; 21 22 import common.Assert; 23 24 import jxl.biff.Type; 25 import jxl.biff.IntegerHelper; 26 import jxl.biff.WritableRecordData; 27 28 31 class PrecisionRecord extends WritableRecordData 32 { 33 36 private boolean asDisplayed; 37 40 private byte[] data; 41 42 47 public PrecisionRecord(boolean disp) 48 { 49 super(Type.PRECISION); 50 51 asDisplayed = disp; 52 data = new byte[2]; 53 54 if (!asDisplayed) 55 { 56 IntegerHelper.getTwoBytes(1, data, 0); 57 } 58 } 59 60 65 public byte[] getData() 66 { 67 return data; 68 } 69 } 70 | Popular Tags |