public abstract class Record extends Object
Constructor and Description |
---|
Record()
instantiates a blank record strictly for ID matching
|
Record(RecordInputStream in)
Constructor Record
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
protected abstract void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
int |
getRecordSize()
gives the current serialized size of the record.
|
abstract short |
getSid()
return the non static version of the id for this record.
|
boolean |
isInValueSection()
DBCELL, ROW, VALUES all say yes
|
boolean |
isValue()
tells whether this type of record contains a value
|
byte[] |
serialize()
called by the class that is responsible for writing this sucker.
|
abstract int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
String |
toString()
get a string representation of the record (for biffview/debugging)
|
protected abstract void |
validateSid(short id)
called by constructor, should throw runtime exception in the event of a
record passed with a differing ID.
|
public Record()
public Record(RecordInputStream in)
in
- the RecordInputstream to read the record fromprotected abstract void validateSid(short id)
id
- alleged id for this recordprotected abstract void fillFields(RecordInputStream in)
in
- the RecordInputstream to read the record frompublic byte[] serialize()
public abstract int serialize(int offset, byte[] data)
offset
- to begin writing atdata
- byte array containing instance datapublic int getRecordSize()
public boolean isValue()
public boolean isInValueSection()
public String toString()
public abstract short getSid()
Copyright © 2016 Open Microscopy Environment