public class WrapperHeader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WrapperHeader.WrapperHeaderBuilder |
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_LENGTH |
Modifier and Type | Method and Description |
---|---|
static WrapperHeader.WrapperHeaderBuilder |
builder(int sourceWPort,
int destinationWPort) |
static WrapperHeader |
decode(StreamAccessor streamAccessor,
int timeout) |
int |
destinationWPort() |
byte[] |
encode() |
int |
getVersion() |
int |
payloadLength() |
int |
sourceWPort() |
public static final int HEADER_LENGTH
public int getVersion()
public int sourceWPort()
public int destinationWPort()
public int payloadLength()
public byte[] encode()
public static WrapperHeader decode(StreamAccessor streamAccessor, int timeout) throws java.io.IOException
java.io.IOException
public static WrapperHeader.WrapperHeaderBuilder builder(int sourceWPort, int destinationWPort)