public final class MacAddressUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAC_ADDRESS_LENGTH
Length of a valid MAC address.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
bestAvailableMac()
Obtains the best MAC address found on local network interfaces.
|
static String |
formatAddress(byte[] addr) |
public static final int MAC_ADDRESS_LENGTH
public static byte[] bestAvailableMac()
public static String formatAddress(byte[] addr)
addr
- byte array of a MAC address.Copyright © 2008–2016 The Netty Project. All rights reserved.