public class UnknownRecord extends Record
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.
| Constructor and Description |
|---|
UnknownRecord() |
UnknownRecord(RecordInputStream in)
construct an unknown record.
|
UnknownRecord(short id,
byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Unlike the other Record.clone methods this is a shallow clone
|
protected void |
fillFields(byte[] data,
short sid) |
protected void |
fillFields(RecordInputStream in)
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!
|
isInValueSection, isValue, serializepublic UnknownRecord()
public UnknownRecord(short id,
byte[] data)
id - id of the record -not validated, just stored for serializationdata - the datapublic UnknownRecord(RecordInputStream in)
in - the RecordInputstream to read the record frompublic int serialize(int offset,
byte[] data)
public int getRecordSize()
RecordgetRecordSize in class Recordprotected void fillFields(byte[] data,
short sid)
protected void validateSid(short id)
validateSid in class Recordid - alleged id for this recordpublic java.lang.String toString()
public short getSid()
Recordprotected void fillFields(RecordInputStream in)
fillFields in class Recordin - the RecordInputstream to read the record fromCopyright © 2014 Open Microscopy Environment