java.lang.Object
org.pcap4j.packet.TcpWindowScaleOption
- All Implemented Interfaces:
Serializable,TcpPacket.TcpOption
- Since:
- pcap4j 1.2.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TcpOptionKindprivate final byteprivate static final longprivate final byte -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTcpWindowScaleOption(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKind()byteintbyte[]byteintinthashCode()intlength()static TcpWindowScaleOptionnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
kind
-
length
private final byte length -
shiftCount
private final byte shiftCount
-
-
Constructor Details
-
TcpWindowScaleOption
- Throws:
IllegalRawDataException
-
TcpWindowScaleOption
-
-
Method Details
-
newInstance
public static TcpWindowScaleOption newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new TcpWindowScaleOption object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getKind
- Specified by:
getKindin interfaceTcpPacket.TcpOption- Returns:
- kind
-
getLength
public byte getLength()- Returns:
- length
-
getLengthAsInt
public int getLengthAsInt()- Returns:
- length
-
getShiftCount
public byte getShiftCount()- Returns:
- shiftCount
-
getShiftCountAsInt
public int getShiftCountAsInt()- Returns:
- shiftCount
-
length
public int length()- Specified by:
lengthin interfaceTcpPacket.TcpOption- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceTcpPacket.TcpOption- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
equals
-
hashCode
public int hashCode()
-