Searched refs:macArray (Results 1 – 1 of 1) sorted by relevance
137 public static String macAddressFromByteArray(byte[] macArray) { in macAddressFromByteArray() argument138 if (macArray == null) { in macAddressFromByteArray()141 if (macArray.length != MAC_LENGTH) { in macAddressFromByteArray()142 throw new IllegalArgumentException("invalid macArray length: " + macArray.length); in macAddressFromByteArray()145 for (int i = 0; i < macArray.length; i++) { in macAddressFromByteArray()147 sb.append(new String(HexEncoding.encode(macArray, i, 1))); in macAddressFromByteArray()176 public static Long macAddressToLong(byte[] macArray) { in macAddressToLong() argument177 if (macArray == null) { in macAddressToLong()180 if (macArray.length != MAC_LENGTH) { in macAddressToLong()181 throw new IllegalArgumentException("invalid macArray length: " + macArray.length); in macAddressToLong()[all …]