Class IpV4StrictSourceRouteOption
java.lang.Object
org.pcap4j.packet.IpV4RouteOption
org.pcap4j.packet.IpV4StrictSourceRouteOption
- All Implemented Interfaces:
Serializable, IpV4Packet.IpV4Option
- Since:
- pcap4j 0.9.11
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIpV4StrictSourceRouteOption(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptiongetType()static IpV4StrictSourceRouteOptionnewInstance(byte[] rawData, int offset, int length) A static factory method.Methods inherited from class IpV4RouteOption
equals, getLength, getLengthAsInt, getPointer, getPointerAsInt, getRawData, getRouteData, hashCode, length, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
IpV4StrictSourceRouteOption
private IpV4StrictSourceRouteOption(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
IpV4StrictSourceRouteOption
-
-
Method Details
-
newInstance
public static IpV4StrictSourceRouteOption 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 IpV4StrictSourceRouteOption 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.
-