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 DimensionRecord extends WritableRecordData 30 { 31 34 private int numRows; 35 38 private int numCols; 39 40 43 private byte[] data; 44 45 51 public DimensionRecord(int r, int c) 52 { 53 super(Type.DIMENSION); 54 numRows = r; 55 numCols = c; 56 57 data = new byte[14]; 58 59 IntegerHelper.getFourBytes(numRows, data, 4); 60 IntegerHelper.getTwoBytes(numCols, data, 10); 61 } 62 63 68 protected byte[] getData() 69 { 70 return data; 71 } 72 73 } 74 | Popular Tags |