|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.poi.hssf.record.Record | +--org.apache.poi.hssf.record.UnknownRecord
Title: Unknown Record (for debugging)
Description: Unknown record just tells you the sid so you can figure out what records you are missing. Also helps us read/modify sheets we don't know all the records to. (HSSF leaves these alone!)
Company: SuperLink Software, Inc.
Fields inherited from class org.apache.poi.hssf.record.Record |
sid |
Constructor Summary | |
UnknownRecord()
|
|
UnknownRecord(short id,
short size,
byte[] data)
construct an unknown record. |
Method Summary | |
protected void |
fillFields(byte[] data,
short sid)
called by the constructor, should set class level fields. |
protected void |
fillFields(byte[] data,
short size,
int offset)
called by the constructor, should set class level fields. |
int |
getRecordSize()
gives the current serialized size of the record. |
short |
getSid()
return the non static version of the id for this record. |
int |
serialize(int offset,
byte[] data)
spit the record out AS IS. |
java.lang.String |
toString()
print a sort of string representation ([UNKNOWN RECORD] id = x [/UNKNOWN RECORD]) |
protected void |
validateSid(short id)
NO OP! |
Methods inherited from class org.apache.poi.hssf.record.Record |
isInValueSection, isValue, processContinueRecord, serialize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UnknownRecord()
public UnknownRecord(short id, short size, byte[] data)
id
- id of the record -not validated, just stored for serializationsize
- size of the datadata
- the dataMethod Detail |
public int serialize(int offset, byte[] data)
serialize
in class Record
org.apache.poi.hssf.record.Record
offset
- to begin writing atdata
- byte array containing instance datapublic int getRecordSize()
Record
getRecordSize
in class Record
protected void fillFields(byte[] data, short sid)
Record
fillFields
in class Record
org.apache.poi.hssf.record.Record
data
- raw dataprotected void validateSid(short id)
validateSid
in class Record
org.apache.poi.hssf.record.Record
id
- alleged id for this recordpublic java.lang.String toString()
toString
in class Record
public short getSid()
Record
getSid
in class Record
protected void fillFields(byte[] data, short size, int offset)
fillFields
in class Record
data
- raw datasize
- size of dataoffset
- of the records data (provided a big array of the file)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |