Module org.pcap4j.core
Package org.pcap4j.packet
Class IpV4InternetTimestampOptionAddressPrespecified
java.lang.Object
org.pcap4j.packet.IpV4InternetTimestampOptionAddressPrespecified
- All Implemented Interfaces:
Serializable,IpV4InternetTimestampOption.IpV4InternetTimestampOptionData
public final class IpV4InternetTimestampOptionAddressPrespecified
extends Object
implements IpV4InternetTimestampOption.IpV4InternetTimestampOptionData
- Since:
- pcap4j 0.9.11
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIpV4InternetTimestampOptionAddressPrespecified(byte[] rawData, int offset, int length) IpV4InternetTimestampOptionAddressPrespecified(Inet4Address address, List<Integer> timestamps) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]inthashCode()intlength()newInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
address
-
timestamps
-
-
Constructor Details
-
IpV4InternetTimestampOptionAddressPrespecified
private IpV4InternetTimestampOptionAddressPrespecified(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
IpV4InternetTimestampOptionAddressPrespecified
public IpV4InternetTimestampOptionAddressPrespecified(Inet4Address address, List<Integer> timestamps) - Parameters:
address- addresstimestamps- timestamps
-
-
Method Details
-
newInstance
public static IpV4InternetTimestampOptionAddressPrespecified 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 IpV4InternetTimestampOptionAddressPrespecified object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getAddress
- Returns:
- address
-
getTimestamps
- Returns:
- timestamps
-
length
public int length()- Specified by:
lengthin interfaceIpV4InternetTimestampOption.IpV4InternetTimestampOptionData- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceIpV4InternetTimestampOption.IpV4InternetTimestampOptionData- Returns:
- raw data
-
toString
-
equals
-
hashCode
public int hashCode()
-