Class IllegalTcpOption
java.lang.Object
org.pcap4j.packet.IllegalTcpOption
- All Implemented Interfaces:
Serializable, TcpPacket.TcpOption
- Since:
- pcap4j 0.9.12
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TcpOptionKindprivate final byte[]private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIllegalTcpOption(byte[] rawData, int offset, int length) privateIllegalTcpOption(IllegalTcpOption.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKind()byte[]inthashCode()intlength()static IllegalTcpOptionnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
kind
-
rawData
private final byte[] rawData
-
-
Constructor Details
-
IllegalTcpOption
private IllegalTcpOption(byte[] rawData, int offset, int length) -
IllegalTcpOption
-
-
Method Details
-
newInstance
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 IllegalTcpOption object.
-
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
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
equals
-
hashCode
-