1 19 20 package jxl.write.biff; 21 22 import jxl.biff.Type; 23 import jxl.biff.WritableRecordData; 24 import jxl.biff.IntegerHelper; 25 26 29 class TabIdRecord extends WritableRecordData 30 { 31 34 private byte[] data; 35 36 41 public TabIdRecord(int sheets) 42 { 43 super(Type.TABID); 44 45 data = new byte[sheets * 2]; 46 47 for (int i = 0 ; i < sheets; i++) 48 { 49 IntegerHelper.getTwoBytes(i+1, data, i * 2); 50 } 51 } 52 53 58 public byte[] getData() 59 { 60 return data; 61 } 62 } 63 | Popular Tags |