public abstract class SubRecord extends java.lang.Object implements Duplicatable, GenericRecord
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SubRecord.SubRecordTypes  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
SubRecord()  | 
protected  | 
SubRecord(SubRecord other)  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract SubRecord | 
copy()  | 
static SubRecord | 
createSubRecord(LittleEndianInput in,
               int cmoOt)
read a sub-record from the supplied stream 
 | 
protected abstract int | 
getDataSize()  | 
abstract SubRecord.SubRecordTypes | 
getGenericRecordType()  | 
boolean | 
isTerminating()
Whether this record terminates the sub-record stream. 
 | 
byte[] | 
serialize()  | 
abstract void | 
serialize(LittleEndianOutput out)  | 
java.lang.String | 
toString()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericChildren, getGenericPropertiesprotected 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 followspublic final java.lang.String toString()
toString in class java.lang.Objectprotected abstract int getDataSize()
public byte[] serialize()
public abstract void serialize(LittleEndianOutput out)
public boolean isTerminating()
true
  - EndSubRecord (sid = 0x00)
  - LbsDataSubRecord (sid = 0x12)public abstract SubRecord copy()
copy in interface Duplicatablepublic abstract SubRecord.SubRecordTypes getGenericRecordType()
getGenericRecordType in interface GenericRecordCopyright 2021 The Apache Software Foundation or its licensors, as applicable.