1 19 20 package jxl.biff; 21 22 27 class BuiltInStyle extends WritableRecordData 28 { 29 32 private int xfIndex; 33 36 private int styleNumber; 37 38 44 public BuiltInStyle(int xfind, int sn) 45 { 46 super(Type.STYLE); 47 48 xfIndex = xfind; 49 styleNumber = sn; 50 } 51 52 57 public byte[] getData() 58 { 59 byte[] data = new byte[4]; 60 61 IntegerHelper.getTwoBytes(xfIndex, data, 0); 62 63 data[1] |= 0x80; 65 66 data[2] = (byte) styleNumber; 67 68 data[3] = (byte) 0xff; 70 71 return data; 72 } 73 } 74 | Popular Tags |