java.lang.Object
org.pcap4j.packet.UnknownTcpOption
- All Implemented Interfaces:
Serializable,TcpPacket.TcpOption
- Since:
- pcap4j 0.9.12
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private final TcpOptionKindprivate final byteprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUnknownTcpOption(byte[] rawData, int offset, int length) privateUnknownTcpOption(UnknownTcpOption.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getData()getKind()byteintbyte[]inthashCode()intlength()static UnknownTcpOptionnewInstance(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 -
data
private final byte[] data
-
-
Constructor Details
-
UnknownTcpOption
- Throws:
IllegalRawDataException
-
UnknownTcpOption
-
-
Method Details
-
newInstance
public static UnknownTcpOption 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 UnknownTcpOption 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
-
getData
public byte[] getData()- Returns:
- data
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceTcpPacket.TcpOption- Returns:
- raw data
-
length
public int length()- Specified by:
lengthin interfaceTcpPacket.TcpOption- Returns:
- length
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
equals
-
hashCode
public int hashCode()
-