code: public static byte[] decodeMACAddress(String address) {
          StringBuffer buf = new StringBuffer(MAC_ADDRESS_TOKEN_COUNT * 2);
          StringTokenizer tokens = new StringTokenizer(address, "-");
          if (tokens.countTokens() != MAC_ADDRESS_TOKEN_COUNT) {
              return null;
          } else {
              for (int i = 0; i < MAC_ADDRESS_TOKEN_COUNT; i++) {
                  buf.append(tokens.nextToken());
              }
          }
          try {
              char[] c = buf.toString().toCharArray();
              return Hex.decodeHex(c);
          } catch (DecoderException de) {
              de.printStackTrace();
              return null;
          }
      }
docs: <p>Utility method decodes a valid MAC address in the form of
  XX-XX-XX-XX-XX-XX where each XX represents a hexidecimal value.</p>
  
  <p> Returns null if the address can not be decoded. </p>
  
  @param address the String hexidecimal dash separated MAC address.
  @return a byte array representing the the address. Null if not a valid address.