1 19 20 package jxl.read.biff; 21 22 import jxl.ErrorCell; 23 import jxl.CellType; 24 import jxl.biff.FormattingRecords; 25 26 30 class ErrorRecord extends CellValue implements ErrorCell 31 { 32 35 private int errorCode; 36 37 44 public ErrorRecord(Record t, FormattingRecords fr, SheetImpl si) 45 { 46 super(t, fr, si); 47 48 byte[] data = getRecord().getData(); 49 50 errorCode = data[6]; 51 } 52 53 60 public int getErrorCode() 61 { 62 return errorCode; 63 } 64 65 70 public String getContents() 71 { 72 return "ERROR " + errorCode; 73 } 74 75 80 public CellType getType() 81 { 82 return CellType.ERROR; 83 } 84 } 85 86 | Popular Tags |