Class TcpSackPermittedOption
java.lang.Object
org.pcap4j.packet.TcpSackPermittedOption
- All Implemented Interfaces:
Serializable, TcpPacket.TcpOption
- Since:
- pcap4j 1.2.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TcpSackPermittedOptionprivate static final TcpOptionKindprivate static final byteprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TcpSackPermittedOptiongetKind()byteintbyte[]intlength()static TcpSackPermittedOptionnewInstance(byte[] rawData, int offset, int length) A static factory method.private ObjecttoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INSTANCE
-
kind
-
length
private static final byte length- See Also:
-
-
Constructor Details
-
TcpSackPermittedOption
private TcpSackPermittedOption()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of TcpSackPermittedOption.
-
newInstance
public static TcpSackPermittedOption 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:
- the singleton instance of TcpSackPermittedOption.
- 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
-
length
public int length()- Specified by:
lengthin interfaceTcpPacket.TcpOption- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceTcpPacket.TcpOption- Returns:
- raw data
-
toString
-
readResolve
- Throws:
ObjectStreamException
-