Methods Summary |
---|
public java.lang.Object | clone()
PrintHeadersRecord rec = new PrintHeadersRecord();
rec.field_1_print_headers = field_1_print_headers;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_print_headers = in.readShort();
|
public boolean | getPrintHeaders()get whether to print the headers - y/n
return (field_1_print_headers == 1);
|
public int | getRecordSize()
return 6;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);
LittleEndian.putShort(data, 4 + offset, field_1_print_headers);
return getRecordSize();
|
public void | setPrintHeaders(boolean p)set to print the headers - y/n
if (p == true)
{
field_1_print_headers = 1;
}
else
{
field_1_print_headers = 0;
}
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[PRINTHEADERS]\n");
buffer.append(" .printheaders = ").append(getPrintHeaders())
.append("\n");
buffer.append("[/PRINTHEADERS]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A PrintHeaders RECORD");
}
|