1 19 20 package jxl.write.biff; 21 22 import jxl.Workbook; 23 import jxl.biff.Type; 24 import jxl.biff.StringHelper; 25 import jxl.biff.WritableRecordData; 26 27 31 class WriteAccessRecord extends WritableRecordData 32 { 33 36 private byte[] data; 37 38 42 private final static String authorString = 43 "Java Excel API"; 44 45 48 public WriteAccessRecord() 49 { 50 super(Type.WRITEACCESS); 51 52 data = new byte[112]; 53 String astring = authorString + " v" + Workbook.getVersion(); 54 StringHelper.getBytes(astring, data, 0); 55 56 for (int i = astring.length() ; i < data.length ;i++) 58 { 59 data[i] = 0x20; 60 } 61 } 62 63 68 public byte[] getData() 69 { 70 return data; 71 } 72 } 73 | Popular Tags |