first commit
This commit is contained in:
22
hrmsEjb/jxl/write/biff/CalcCountRecord.java
Normal file
22
hrmsEjb/jxl/write/biff/CalcCountRecord.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package jxl.write.biff;
|
||||
|
||||
import jxl.biff.IntegerHelper;
|
||||
import jxl.biff.Type;
|
||||
import jxl.biff.WritableRecordData;
|
||||
|
||||
class CalcCountRecord extends WritableRecordData {
|
||||
private int calcCount;
|
||||
|
||||
private byte[] data;
|
||||
|
||||
public CalcCountRecord(int cnt) {
|
||||
super(Type.CALCCOUNT);
|
||||
this.calcCount = cnt;
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
byte[] data = new byte[2];
|
||||
IntegerHelper.getTwoBytes(this.calcCount, data, 0);
|
||||
return data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user