public class DrawingRecord extends Record
Modifier and Type | Field and Description |
---|---|
private byte[] |
recordData |
static short |
sid |
Constructor and Description |
---|
DrawingRecord() |
DrawingRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
byte[] |
getData() |
int |
getRecordSize()
gives the current serialized size of the record.
|
short |
getSid()
return the non static version of the id for this record.
|
void |
processContinueRecord(byte[] record) |
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
void |
setData(byte[] thedata) |
protected void |
validateSid(short id)
Checks the sid matches the expected side for this record
|
public static final short sid
private byte[] recordData
public DrawingRecord()
public DrawingRecord(RecordInputStream in)
protected void validateSid(short id)
validateSid
in class Record
id
- the expected sid.protected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic void processContinueRecord(byte[] record)
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
Record
getRecordSize
in class Record
public short getSid()
Record
public byte[] getData()
public void setData(byte[] thedata)
Copyright © 2016 Open Microscopy Environment