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,34 @@
package jxl.write.biff;
import jxl.biff.IntegerHelper;
import jxl.biff.StringHelper;
import jxl.biff.Type;
import jxl.biff.WritableRecordData;
class FooterRecord extends WritableRecordData {
private byte[] data;
private String footer;
public FooterRecord(String s) {
super(Type.FOOTER);
this.footer = s;
}
public FooterRecord(FooterRecord fr) {
super(Type.FOOTER);
this.footer = fr.footer;
}
public byte[] getData() {
if (this.footer == null || this.footer.length() == 0) {
this.data = new byte[0];
return this.data;
}
this.data = new byte[this.footer.length() * 2 + 3];
IntegerHelper.getTwoBytes(this.footer.length(), this.data, 0);
this.data[2] = 1;
StringHelper.getUnicodeBytes(this.footer, this.data, 3);
return this.data;
}
}