|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Ip4.Ip4Type>
org.jnetpcap.protocol.network.Ip4.Ip4Type
public static enum Ip4.Ip4Type
A table of IpTypes and their names
| Enum Constant Summary | |
|---|---|
ICMP
Internet control messaging protocol |
|
TCP
Ttransmission control protocol |
|
UDP
Unreliable datagram protocol |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Description of the type value |
int[] |
getTypeValues()
Converts contant to numerical ip type |
static java.lang.String |
toString(int type)
Name of the constant |
static Ip4.Ip4Type |
valueOf(int type)
Converts a numerical type to constant |
static Ip4.Ip4Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Ip4.Ip4Type[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jnetpcap.packet.JHeaderType |
|---|
ordinal |
| Enum Constant Detail |
|---|
public static final Ip4.Ip4Type ICMP
public static final Ip4.Ip4Type TCP
public static final Ip4.Ip4Type UDP
| Method Detail |
|---|
public static final Ip4.Ip4Type[] values()
for(Ip4.Ip4Type c : Ip4.Ip4Type.values())
System.out.println(c);
public static Ip4.Ip4Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic static java.lang.String toString(int type)
type - ip type number
public static Ip4.Ip4Type valueOf(int type)
type - Ip4 type number
public final java.lang.String getDescription()
public final int[] getTypeValues()
getTypeValues in interface JHeaderType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||