java.lang.Object
org.pcap4j.packet.IpV4RouteOption
org.pcap4j.packet.IpV4RecordRouteOption
- All Implemented Interfaces:
Serializable,IpV4Packet.IpV4Option
- Since:
- pcap4j 0.9.11
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIpV4RecordRouteOption(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptiongetType()static IpV4RecordRouteOptionnewInstance(byte[] rawData, int offset, int length) A static factory method.Methods inherited from class org.pcap4j.packet.IpV4RouteOption
equals, getLength, getLengthAsInt, getPointer, getPointerAsInt, getRawData, getRouteData, hashCode, length, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
IpV4RecordRouteOption
private IpV4RecordRouteOption(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
IpV4RecordRouteOption
-
-
Method Details
-
newInstance
public static IpV4RecordRouteOption 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 IpV4RecordRouteOption object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getType
- Specified by:
getTypein interfaceIpV4Packet.IpV4Option- Specified by:
getTypein classIpV4RouteOption- Returns:
- type
-
getBuilder
- Specified by:
getBuilderin classIpV4RouteOption- Returns:
- a new Builder object populated with this object's fields.
-