org.apache.cocoon.poi.hssf.record
public class: EOFRecord [javadoc |
source]
java.lang.Object
org.apache.cocoon.poi.hssf.record.Record
org.apache.cocoon.poi.hssf.record.EOFRecord
Title: End Of File record
Description: Marks the end of records belonging to a particular object in the
HSSF File
Copyright: Copyright (c) 2001 SuperLink Software, Inc.
REFERENCE: PG 307 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
- author:
Andrew - C. Oliver (andycoliver@excite.com)
- version:
1.0-pre -
| Field Summary |
|---|
| public static final short | sid | |
| Constructor: |
public EOFRecord() {
}
|
public EOFRecord(short id,
short size,
byte[] data) {
super(id, size, data);
}
Constructs a EOFRecord record and sets its fields appropriately. Parameters:
short - id must be 0x0A or an exception will be throw upon validation
short - size the size of the data area of the record
byte - [] data of the record (should not contain sid/len)
|
public EOFRecord(short id,
short size,
byte[] data,
int offset) {
super(id, size, data, offset);
}
Constructs a EOFRecord record and sets its fields appropriately. Parameters:
short - id must be 0x0A or an exception will be throw upon validation
short - size the size of the data area of the record
byte - [] data of the record (should not contain sid/len)
offset - of the record's data
|
| Method from org.apache.cocoon.poi.hssf.record.EOFRecord Detail: |
protected void fillFields(byte[] data,
short size,
int offset) {
}
|
public short getSid() {
return this.sid;
}
|
public byte[] serialize() {
byte[] retval = new byte[ 4 ];
LittleEndian.putShort(retval, 0, sid);
LittleEndian.putShort(retval, 2, (( short ) 0)); // no record info
return retval;
}
|
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("[EOF]\n");
buffer.append("[/EOF]\n");
return buffer.toString();
}
|
protected void validateSid(short id) {
if (id != sid)
{
throw new RecordFormatException("NOT An EOF RECORD");
}
}
|