|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwol.configuration.EthernetAddress
This class represents a ethernet address.
An Ethernet Address ia a six octets (48 bits) number that uniquelly identifies every
network interface card (NIC). The first three octects (24 bits) are known as the
Organizationally Unique Identifier (OUI) and identifies its manufacturer.
Constructor Summary | |
EthernetAddress(byte[] ethernetAddress)
Create a EthernetAddress based on the provided bytes. |
|
EthernetAddress(String ethernetAddress)
Create a EthernetAddress based on the provided address. |
Method Summary | |
protected String |
byteToHexString(byte b)
|
Object |
clone()
|
boolean |
equals(Object obj)
|
int |
hashCode()
|
protected byte[] |
parseEthernetAddress(String ethernetAddress)
Parses a String representing an ethernet address into an byte array. |
byte[] |
toBytes()
Returns the byte representation of this ethernet address. |
String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EthernetAddress(String ethernetAddress) throws IllegalEthernetAddressException
ethernetAddress
- the ethernet address
IllegalArgumentException
- if the ethernet address could not be parsed
NullPointerException
- if the ethernet address is null
IllegalEthernetAddressException
public EthernetAddress(byte[] ethernetAddress) throws IllegalEthernetAddressException
ethernetAddress
- the bytes. Must have length of 6!
IllegalEthernetAddressException
- if ethernet address is of illegal length or null
NullPointerException
- if the ethernet address is nullMethod Detail |
protected byte[] parseEthernetAddress(String ethernetAddress) throws IllegalEthernetAddressException
ethernetAddress
- a String representation of the ethernet address.
IllegalEthernetAddressException
public byte[] toBytes()
public boolean equals(Object obj)
public String toString()
protected String byteToHexString(byte b)
public int hashCode()
public Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |