first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
package jxl.read.biff;
import common.Logger;
import jxl.biff.IntegerHelper;
import jxl.biff.RecordData;
class DimensionRecord extends RecordData {
private static Logger logger = Logger.getLogger(DimensionRecord.class);
private int numRows;
private int numCols;
private static class Biff7 {
private Biff7() {}
}
public static Biff7 biff7 = new Biff7();
public DimensionRecord(Record t) {
super(t);
byte[] data = t.getData();
if (data.length == 10) {
read10ByteData(data);
} else {
read14ByteData(data);
}
}
public DimensionRecord(Record t, Biff7 biff7) {
super(t);
byte[] data = t.getData();
read10ByteData(data);
}
private void read10ByteData(byte[] data) {
this.numRows = IntegerHelper.getInt(data[2], data[3]);
this.numCols = IntegerHelper.getInt(data[6], data[7]);
}
private void read14ByteData(byte[] data) {
this.numRows = IntegerHelper.getInt(data[4], data[5], data[6], data[7]);
this.numCols = IntegerHelper.getInt(data[10], data[11]);
}
public int getNumberOfRows() {
return this.numRows;
}
public int getNumberOfColumns() {
return this.numCols;
}
}