public class HardwareAddress extends Object implements Serializable
| Constructor and Description |
|---|
HardwareAddress(byte[] macAddr) |
HardwareAddress(byte hType,
byte[] macAddr) |
HardwareAddress(byte hType,
String macHex) |
HardwareAddress(String macHex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
byte[] |
getHardwareAddress() |
static HardwareAddress |
getHardwareAddressByString(String macStr)
Parse the MAC address in hex format, split by ':'.
|
String |
getHardwareAddressHex() |
byte |
getHardwareType() |
int |
hashCode() |
String |
toString()
Prints the hardware address in hex format, split by ":".
|
public HardwareAddress(byte[] macAddr)
public HardwareAddress(byte hType,
byte[] macAddr)
public HardwareAddress(String macHex)
public HardwareAddress(byte hType,
String macHex)
public byte getHardwareType()
public byte[] getHardwareAddress()
public String getHardwareAddressHex()
public String toString()
public static HardwareAddress getHardwareAddressByString(String macStr)
E.g. 0:c0:c3:49:2b:57.
macStr - MAC stringCopyright © 2018 Philip Helger. All rights reserved.