public abstract class AbstractEscherHolderRecord extends Record
Modifier and Type | Field and Description |
---|---|
private static boolean |
DESERIALISE |
private List |
escherRecords |
private byte[] |
rawData |
Constructor and Description |
---|
AbstractEscherHolderRecord() |
AbstractEscherHolderRecord(RecordInputStream in)
Constructs a Bar record and sets its fields appropriately.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEscherRecord(EscherRecord element) |
void |
addEscherRecord(int index,
EscherRecord element) |
void |
clearEscherRecords() |
Object |
clone() |
private void |
convertToEscherRecords(int offset,
int size,
byte[] data) |
void |
decode()
Convert raw data to escher records.
|
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
EscherRecord |
getEscherRecord(int index) |
List |
getEscherRecords() |
byte[] |
getRawData() |
protected abstract String |
getRecordName() |
int |
getRecordSize()
Size of record (including 4 byte header)
|
abstract short |
getSid()
return the non static version of the id for this record.
|
void |
join(AbstractEscherHolderRecord record)
Big drawing group records are split but it's easier to deal with them
as a whole group so we need to join them together.
|
void |
processContinueRecord(byte[] record) |
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
void |
setRawData(byte[] rawData) |
String |
toString()
get a string representation of the record (for biffview/debugging)
|
protected void |
validateSid(short id)
Checks the sid matches the expected side for this record
|
isInValueSection, isValue, serialize
private static boolean DESERIALISE
private List escherRecords
private byte[] rawData
public AbstractEscherHolderRecord()
public AbstractEscherHolderRecord(RecordInputStream in)
in
- the RecordInputstream to read the record fromprotected 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 fromprivate void convertToEscherRecords(int offset, int size, byte[] data)
public String toString()
Record
protected abstract String getRecordName()
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
getRecordSize
in class Record
public abstract short getSid()
Record
public void addEscherRecord(int index, EscherRecord element)
public boolean addEscherRecord(EscherRecord element)
public List getEscherRecords()
public void clearEscherRecords()
public EscherRecord getEscherRecord(int index)
public void join(AbstractEscherHolderRecord record)
public void processContinueRecord(byte[] record)
public byte[] getRawData()
public void setRawData(byte[] rawData)
public void decode()
Copyright © 2016 Open Microscopy Environment