public final class TcpSackOption extends Object implements TcpPacket.TcpOption
Modifier and Type | Class and Description |
---|---|
static class |
TcpSackOption.Builder |
static class |
TcpSackOption.Sack |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TcpSackOption.Builder |
getBuilder() |
TcpOptionKind |
getKind() |
byte |
getLength() |
int |
getLengthAsInt() |
byte[] |
getRawData() |
int |
hashCode() |
int |
length() |
static TcpSackOption |
newInstance(byte[] rawData) |
String |
toString() |
public static TcpSackOption newInstance(byte[] rawData) throws IllegalRawDataException
rawData
- IllegalRawDataException
NullPointerException
- if the rawData argument is null.IllegalArgumentException
- if the rawData argument is empty.public TcpOptionKind getKind()
getKind
in interface TcpPacket.TcpOption
public byte getLength()
public int getLengthAsInt()
public int length()
length
in interface TcpPacket.TcpOption
public byte[] getRawData()
getRawData
in interface TcpPacket.TcpOption
public TcpSackOption.Builder getBuilder()
Copyright © 2014. All Rights Reserved.