Class WrapperHeader
- java.lang.Object
-
- org.openmuc.jdlms.sessionlayer.client.WrapperHeader
-
public class WrapperHeader extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WrapperHeader.WrapperHeaderBuilder
-
Field Summary
Fields Modifier and Type Field Description static int
HEADER_LENGTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WrapperHeader.WrapperHeaderBuilder
builder(int sourceWPort, int destinationWPort)
static WrapperHeader
decode(StreamAccessor streamAccessor, int timeout)
byte[]
encode()
int
getDestinationWPort()
int
getPayloadLength()
int
getSourceWPort()
int
getVersion()
-
-
-
Field Detail
-
HEADER_LENGTH
public static final int HEADER_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
public int getVersion()
-
getSourceWPort
public int getSourceWPort()
-
getDestinationWPort
public int getDestinationWPort()
-
getPayloadLength
public int getPayloadLength()
-
encode
public byte[] encode()
-
decode
public static WrapperHeader decode(StreamAccessor streamAccessor, int timeout) throws java.io.IOException
- Throws:
java.io.IOException
-
builder
public static WrapperHeader.WrapperHeaderBuilder builder(int sourceWPort, int destinationWPort)
-
-