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, wait
getGenericChildren, getGenericProperties
protected SubRecord()
protected SubRecord(SubRecord other)
public static SubRecord createSubRecord(LittleEndianInput in, int cmoOt)
in
- the stream to read from
(in - 要读取的流)
cmoOt
- the objectType field of the containing CommonObjectDataSubRecord, we need it to propagate to next sub-records as it defines what data follows
(cmoOt - 包含 CommonObjectDataSubRecord 的 objectType 字段,我们需要它传播到下一个子记录,因为它定义了后面的数据)
public final java.lang.String toString()
toString
in class
java.lang.Object
protected abstract int getDataSize()
public byte[] serialize()
public abstract void serialize(LittleEndianOutput out)
public boolean isTerminating()
true
- EndSubRecord (sid = 0x00) - LbsDataSubRecord (sid = 0x12)
(此记录是否终止子记录流。有两种情况必须重写此方法并返回 true - EndSubRecord (sid = 0x00) - LbsDataSubRecord (sid = 0x12))
public abstract SubRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
public abstract SubRecord.SubRecordTypes getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.