public abstract class SubRecord extends Object
Modifier | Constructor and Description |
---|---|
protected |
SubRecord() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
clone() |
static SubRecord |
createSubRecord(LittleEndianInput in,
int cmoOt)
read a sub-record from the supplied stream
|
protected abstract int |
getDataSize() |
boolean |
isTerminating()
Wether this record terminates the sub-record stream.
|
byte[] |
serialize() |
abstract void |
serialize(LittleEndianOutput out) |
public static SubRecord createSubRecord(LittleEndianInput in, int cmoOt)
in
- the stream to read fromcmoOt
- the objectType field of the containing CommonObjectDataSubRecord,
we need it to propagate to next sub-records as it defines what data followsprotected abstract int getDataSize()
public byte[] serialize()
public abstract void serialize(LittleEndianOutput out)
public boolean isTerminating()
true
- EndSubRecord (sid = 0x00)
- LbsDataSubRecord (sid = 0x12)Copyright © 2020. All rights reserved.