public class EthType extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
EthType.EtherType
A list of known ethertypes. 
 | 
| Constructor and Description | 
|---|
EthType(int etherType)
Builds the EthType. 
 | 
EthType(short etherType)
Builds the EthType. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
int | 
hashCode()  | 
EthType.EtherType | 
lookup(short etherType)
Looks up the ethertype by it's numerical representation
 and returns it's textual format. 
 | 
short | 
toShort()
Returns the short value for this ethtype. 
 | 
String | 
toString()  | 
public EthType(int etherType)
etherType - an integer representing an ethtypepublic EthType(short etherType)
etherType - a short representing the ethtypepublic short toShort()
public EthType.EtherType lookup(short etherType)
etherType - the short value of the ethertype