public abstract class SubRecord extends java.lang.Object implements Duplicatable
Modifier | Constructor and Description |
---|---|
protected |
SubRecord() |
protected |
SubRecord(SubRecord other) |
Modifier and Type | Method and Description |
---|---|
abstract SubRecord |
clone()
Deprecated.
|
abstract SubRecord |
copy() |
static SubRecord |
createSubRecord(LittleEndianInput in,
int cmoOt)
read a sub-record from the supplied stream
|
protected abstract int |
getDataSize() |
boolean |
isTerminating()
Whether this record terminates the sub-record stream.
|
byte[] |
serialize() |
abstract void |
serialize(LittleEndianOutput out) |
protected SubRecord()
protected SubRecord(SubRecord other)
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)@Deprecated @Removal(version="5.0.0") public abstract SubRecord clone()
clone
in class java.lang.Object
public abstract SubRecord copy()
copy
in interface Duplicatable
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.