1 19 20 package jxl.read.biff; 21 22 import jxl.WorkbookSettings; 23 import jxl.biff.StringHelper; 24 import jxl.biff.IntegerHelper; 25 import jxl.biff.RecordData; 26 27 30 public class FooterRecord extends RecordData 31 { 32 35 private String footer; 36 37 40 private static class Biff7 {}; 41 public static Biff7 biff7 = new Biff7(); 42 43 49 FooterRecord(Record t, WorkbookSettings ws) 50 { 51 super(t); 52 byte[] data = getRecord().getData(); 53 54 if (data.length == 0) 55 { 56 return; 57 } 58 59 int chars = IntegerHelper.getInt(data[0], data[1]); 60 61 boolean unicode = data[2] == 1; 62 63 if (unicode) 64 { 65 footer = StringHelper.getUnicodeString(data, chars, 3); 66 } 67 else 68 { 69 footer = StringHelper.getString(data, chars, 3, ws); 70 } 71 } 72 73 80 FooterRecord(Record t, WorkbookSettings ws, Biff7 dummy) 81 { 82 super(t); 83 byte[] data = getRecord().getData(); 84 85 if (data.length == 0) 86 { 87 return; 88 } 89 90 int chars = data[0]; 91 footer = StringHelper.getString(data, chars, 1, ws); 92 } 93 94 99 String getFooter() 100 { 101 return footer; 102 } 103 } 104 | Popular Tags |