first commit
This commit is contained in:
26
hrmsEjb/jxl/write/biff/DimensionRecord.java
Normal file
26
hrmsEjb/jxl/write/biff/DimensionRecord.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package jxl.write.biff;
|
||||
|
||||
import jxl.biff.IntegerHelper;
|
||||
import jxl.biff.Type;
|
||||
import jxl.biff.WritableRecordData;
|
||||
|
||||
class DimensionRecord extends WritableRecordData {
|
||||
private int numRows;
|
||||
|
||||
private int numCols;
|
||||
|
||||
private byte[] data;
|
||||
|
||||
public DimensionRecord(int r, int c) {
|
||||
super(Type.DIMENSION);
|
||||
this.numRows = r;
|
||||
this.numCols = c;
|
||||
this.data = new byte[14];
|
||||
IntegerHelper.getFourBytes(this.numRows, this.data, 4);
|
||||
IntegerHelper.getTwoBytes(this.numCols, this.data, 10);
|
||||
}
|
||||
|
||||
protected byte[] getData() {
|
||||
return this.data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user