Modifier and Type | Method and Description |
---|---|
Record.TYPE |
getType()
The payload type.
|
static UNKNOWN |
parse(DataInputStream dis,
int payloadLength,
Record.TYPE type) |
void |
serialize(DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
equals, hashCode, length, toByteArray, toOutputStream
public Record.TYPE getType()
Data
public void serialize(DataOutputStream dos) throws IOException
Data
serialize
in class Data
dos
- the output stream to serialize to.IOException
- if an I/O error occurs.public static UNKNOWN parse(DataInputStream dis, int payloadLength, Record.TYPE type) throws IOException
IOException