first commit
This commit is contained in:
27
hrmsEjb/jxl/read/biff/ErrorRecord.java
Normal file
27
hrmsEjb/jxl/read/biff/ErrorRecord.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package jxl.read.biff;
|
||||
|
||||
import jxl.CellType;
|
||||
import jxl.ErrorCell;
|
||||
import jxl.biff.FormattingRecords;
|
||||
|
||||
class ErrorRecord extends CellValue implements ErrorCell {
|
||||
private int errorCode;
|
||||
|
||||
public ErrorRecord(Record t, FormattingRecords fr, SheetImpl si) {
|
||||
super(t, fr, si);
|
||||
byte[] data = getRecord().getData();
|
||||
this.errorCode = data[6];
|
||||
}
|
||||
|
||||
public int getErrorCode() {
|
||||
return this.errorCode;
|
||||
}
|
||||
|
||||
public String getContents() {
|
||||
return "ERROR " + this.errorCode;
|
||||
}
|
||||
|
||||
public CellType getType() {
|
||||
return CellType.ERROR;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user