- java.lang.Object
-
- org.pcap4j.packet.UnknownIpV6RoutingData
-
- All Implemented Interfaces:
java.io.Serializable,IpV6ExtRoutingPacket.IpV6RoutingData
public final class UnknownIpV6RoutingData extends java.lang.Object implements IpV6ExtRoutingPacket.IpV6RoutingData
- Since:
- pcap4j 0.9.11
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]rawDataprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateUnknownIpV6RoutingData(byte[] rawData, int offset, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)byte[]getRawData()inthashCode()intlength()static UnknownIpV6RoutingDatanewInstance(byte[] rawData, int offset, int length)A static factory method.java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
rawData
private final byte[] rawData
-
-
Constructor Detail
-
UnknownIpV6RoutingData
private UnknownIpV6RoutingData(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
-
Method Detail
-
newInstance
public static UnknownIpV6RoutingData 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 UnknownIpV6RoutingData object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
length
public int length()
- Specified by:
lengthin interfaceIpV6ExtRoutingPacket.IpV6RoutingData- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawDatain interfaceIpV6ExtRoutingPacket.IpV6RoutingData- Returns:
- raw data
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-