Package voyeur.types
Class HardwareAddress
- java.lang.Object
-
- voyeur.types.HardwareAddress
-
public class HardwareAddress extends Object
Hardware Address.- Author:
- Allen D. Ball
-
-
Constructor Summary
Constructors Constructor Description HardwareAddress(byte[] bytes)
byte
array constructor.HardwareAddress(String string)
String
constructor.HardwareAddress(NetworkInterface netif)
NetworkInterface
constructor.
-
-
-
Constructor Detail
-
HardwareAddress
public HardwareAddress(NetworkInterface netif) throws SocketException
NetworkInterface
constructor.- Parameters:
netif
- TheNetworkInterface
.- Throws:
SocketException
- If the hardware address canoot be read.
-
HardwareAddress
public HardwareAddress(String string)
String
constructor.- Parameters:
string
- TheString
representation.
-
HardwareAddress
public HardwareAddress(byte[] bytes)
byte
array constructor.- Parameters:
bytes
- Thebyte
array representing the hardware address.
-
-