Class TcpEndOfOptionList
java.lang.Object
org.pcap4j.packet.TcpEndOfOptionList
- All Implemented Interfaces:
Serializable, TcpPacket.TcpOption
- Since:
- pcap4j 0.9.12
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TcpEndOfOptionListprivate static final TcpOptionKindprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TcpEndOfOptionListgetKind()byte[]intlength()static TcpEndOfOptionListnewInstance(byte[] rawData, int offset, int length) A static factory method.private ObjecttoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INSTANCE
-
kind
-
-
Constructor Details
-
TcpEndOfOptionList
private TcpEndOfOptionList()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of TcpEndOfOptionList.
-
newInstance
public static TcpEndOfOptionList 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 TcpEndOfOptionList.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getKind
- Specified by:
getKindin interfaceTcpPacket.TcpOption- Returns:
- kind
-
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
-