public class HeartbeatExtension
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected short |
mode |
Constructor and Description |
---|
HeartbeatExtension(short mode) |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream output)
Encode this
HeartbeatExtension to an OutputStream . |
short |
getMode() |
static HeartbeatExtension |
parse(java.io.InputStream input)
Parse a
HeartbeatExtension from an InputStream . |
public short getMode()
public void encode(java.io.OutputStream output) throws java.io.IOException
HeartbeatExtension
to an OutputStream
.output
- the OutputStream
to encode to.java.io.IOException
public static HeartbeatExtension parse(java.io.InputStream input) throws java.io.IOException
HeartbeatExtension
from an InputStream
.input
- the InputStream
to parse from.HeartbeatExtension
object.java.io.IOException