1 19 20 package jxl.read.biff; 21 22 import jxl.LabelCell; 23 import jxl.CellType; 24 import jxl.WorkbookSettings; 25 import jxl.biff.IntegerHelper; 26 import jxl.biff.FormattingRecords; 27 import jxl.biff.StringHelper; 28 29 32 class RStringRecord extends CellValue implements LabelCell 33 { 34 37 private int length; 38 41 private String string; 42 43 46 private static class Biff7 {}; 47 public static Biff7 biff7 = new Biff7(); 48 49 58 public RStringRecord(Record t, FormattingRecords fr, 59 SheetImpl si, WorkbookSettings ws, Biff7 dummy) 60 { 61 super(t, fr, si); 62 byte[] data = getRecord().getData(); 63 length = IntegerHelper.getInt(data[6], data[7]); 64 65 string = StringHelper.getString(data, length, 8, ws); 66 } 67 68 73 public String getString() 74 { 75 return string; 76 } 77 78 83 public String getContents() 84 { 85 return string; 86 } 87 88 93 public CellType getType() 94 { 95 return CellType.LABEL; 96 } 97 } 98 | Popular Tags |