net.clackrouter.netutils
Class EthernetAddress

java.lang.Object
  extended by net.clackrouter.netutils.EthernetAddress
All Implemented Interfaces:
java.io.Serializable

public class EthernetAddress
extends java.lang.Object
implements java.io.Serializable

Class representing an Ethernet address and associated utility functions.

See Also:
Serialized Form

Constructor Summary
EthernetAddress()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] getAddress()
           
static EthernetAddress getByAddress(byte[] addr_in)
           
static EthernetAddress getByAddress(java.lang.String addr_in)
           
 byte[] getBytes()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EthernetAddress

public EthernetAddress()
Method Detail

getByAddress

public static EthernetAddress getByAddress(byte[] addr_in)
                                    throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getByAddress

public static EthernetAddress getByAddress(java.lang.String addr_in)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getBytes

public byte[] getBytes()

getAddress

public byte[] getAddress()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object