public final class TcpMaximumSegmentSizeOption extends Object implements TcpPacket.TcpOption
Modifier and Type | Class and Description |
---|---|
static class |
TcpMaximumSegmentSizeOption.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TcpMaximumSegmentSizeOption.Builder |
getBuilder() |
TcpOptionKind |
getKind() |
byte |
getLength() |
int |
getLengthAsInt() |
short |
getMaxSegSize() |
int |
getMaxSegSizeAsInt() |
byte[] |
getRawData() |
int |
hashCode() |
int |
length() |
static TcpMaximumSegmentSizeOption |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
String |
toString() |
public static TcpMaximumSegmentSizeOption newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- offset
- length
- IllegalRawDataException
public TcpOptionKind getKind()
getKind
in interface TcpPacket.TcpOption
public byte getLength()
public int getLengthAsInt()
public short getMaxSegSize()
public int getMaxSegSizeAsInt()
public int length()
length
in interface TcpPacket.TcpOption
public byte[] getRawData()
getRawData
in interface TcpPacket.TcpOption
public TcpMaximumSegmentSizeOption.Builder getBuilder()
Copyright © 2014. All Rights Reserved.