public final class TcpSackPermittedOption extends Object implements TcpPacket.TcpOption
Modifier and Type | Method and Description |
---|---|
static TcpSackPermittedOption |
getInstance() |
TcpOptionKind |
getKind() |
byte |
getLength() |
int |
getLengthAsInt() |
byte[] |
getRawData() |
int |
length() |
static TcpSackPermittedOption |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
String |
toString() |
public static TcpSackPermittedOption getInstance()
public static TcpSackPermittedOption newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthIllegalRawDataException
- if parsing the raw data fails.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
Copyright © 2011–2016 Pcap4J.org. All rights reserved.