public final class TcpWindowScaleOption extends Object implements TcpPacket.TcpOption
Modifier and Type | Class and Description |
---|---|
static class |
TcpWindowScaleOption.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TcpWindowScaleOption.Builder |
getBuilder() |
TcpOptionKind |
getKind() |
byte |
getLength() |
int |
getLengthAsInt() |
byte[] |
getRawData() |
byte |
getShiftCount() |
int |
getShiftCountAsInt() |
int |
hashCode() |
int |
length() |
static TcpWindowScaleOption |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
String |
toString() |
public static TcpWindowScaleOption 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 byte getShiftCount()
public int getShiftCountAsInt()
public int length()
length
in interface TcpPacket.TcpOption
public byte[] getRawData()
getRawData
in interface TcpPacket.TcpOption
public TcpWindowScaleOption.Builder getBuilder()
Copyright © 2011–2016 Pcap4J.org. All rights reserved.