Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_window = in.readShort();
|
public int | getRecordSize()
return 6;
|
public short | getSid()
return sid;
|
public short | getWindowing()gets whether or not to use 1904 date windowing (which means you'll be screwed in 2004)
return field_1_window;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset,
(( short ) 0x02)); // 2 bytes (6 total)
LittleEndian.putShort(data, 4 + offset, getWindowing());
return getRecordSize();
|
public void | setWindowing(short window)sets whether or not to use 1904 date windowing (which means you'll be screwed in 2004) // I hate using numbers in method names so I wont!
field_1_window = window;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[1904]\n");
buffer.append(" .is1904 = ")
.append(Integer.toHexString(getWindowing())).append("\n");
buffer.append("[/1904]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A 1904 RECORD");
}
|