/** * Constructs this object from the raw data * * @param t the record data * @param ws the workbook settings * @param dummy dummy record to indicate a biff7 document */ FooterRecord(Record t, WorkbookSettings ws, Biff7 dummy) { super(t); byte[] data = getRecord().getData(); if (data.length == 0) { return; } int chars = data[0]; footer = StringHelper.getString(data, chars, 1, ws); }
/** * Constructs this object from the raw data * * @param t the record data * @param ws the workbook settings * @param dummy dummy record to indicate a biff7 document */ FooterRecord(Record t, WorkbookSettings ws, Biff7 dummy) { super(t); byte[] data = getRecord().getData(); if (data.length == 0) { return; } int chars = data[0]; footer = StringHelper.getString(data, chars, 1, ws); }
/** * Constructs this object from the raw data * * @param t the record data * @param ws the workbook settings */ FooterRecord(Record t, WorkbookSettings ws) { super(t); byte[] data = getRecord().getData(); if (data.length == 0) { return; } int chars = IntegerHelper.getInt(data[0], data[1]); boolean unicode = data[2] == 1; if (unicode) { footer = StringHelper.getUnicodeString(data, chars, 3); } else { footer = StringHelper.getString(data, chars, 3, ws); } }
/** * Constructs this object from the raw data * * @param t the record data * @param ws the workbook settings */ FooterRecord(Record t, WorkbookSettings ws) { super(t); byte[] data = getRecord().getData(); if (data.length == 0) { return; } int chars = IntegerHelper.getInt(data[0], data[1]); boolean unicode = data[2] == 1; if (unicode) { footer = StringHelper.getUnicodeString(data, chars, 3); } else { footer = StringHelper.getString(data, chars, 3, ws); } }