com.dalsemi.nethack
Class EthernetAddress

java.lang.Object
  |
  +--com.dalsemi.nethack.EthernetAddress

public class EthernetAddress
extends java.lang.Object

This class simply encapsulates a byte array which contains a 48 bit ethernet address.


Field Summary
protected  byte[] address
           
 
Constructor Summary
EthernetAddress(byte[] address)
          Constructs a new instance of this class with the given byte array as the ethernet address.
 
Method Summary
 byte[] getBytes()
          Gets a byte array containing the ethernet address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

protected byte[] address
Constructor Detail

EthernetAddress

public EthernetAddress(byte[] address)
                throws AddressException
Constructs a new instance of this class with the given byte array as the ethernet address.
Parameters:
address - - a six byte array containing a valid ethernet address.
Method Detail

getBytes

public byte[] getBytes()
Gets a byte array containing the ethernet address.
Returns:
byte[] - the ethernet address.