public final class MacAddressUtil
extends java.lang.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 java.lang.String |
formatAddress(byte[] addr) |
public static final int MAC_ADDRESS_LENGTH
public static byte[] bestAvailableMac()
public static java.lang.String formatAddress(byte[] addr)
addr
- byte array of a MAC address.Copyright © 2019. All Rights Reserved.