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