net.clackrouter.netutils
Class EthernetAddress
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EthernetAddress
public EthernetAddress()
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