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 MMSRecord extends WritableRecordData 30 { 31 34 private byte numMenuItemsAdded; 35 38 private byte numMenuItemsDeleted; 39 42 private byte[] data; 43 44 50 public MMSRecord(int menuItemsAdded, int menuItemsDeleted) 51 { 52 super(Type.MMS); 53 54 numMenuItemsAdded = (byte) menuItemsAdded; 55 numMenuItemsDeleted = (byte) menuItemsDeleted; 56 57 data = new byte[2]; 58 59 data[0] = numMenuItemsAdded; 60 data[1] = numMenuItemsDeleted; 61 } 62 63 68 public byte[] getData() 69 { 70 return data; 71 } 72 } 73 | Popular Tags |