Java XML Data Type Converter formatFriendlyName(final byte[] addressBytes)

Here you can find the source of formatFriendlyName(final byte[] addressBytes)

Description

format Friendly Name

License

Open Source License

Declaration

public static String formatFriendlyName(final byte[] addressBytes) 

Method Source Code


//package com.java2s;
import javax.xml.bind.DatatypeConverter;

public class Main {
    public static String formatFriendlyName(final byte[] addressBytes) {
        final String base64 = DatatypeConverter.printBase64Binary(addressBytes);
        final String slashToMinus = base64.replace('/', '-');
        return slashToMinus;
    }/*from w  w  w.j a v a 2 s . c o  m*/
}

Related

  1. encodeDoubleArray(double[] noData)
  2. encodeJavaOpts(String javaOpts)
  3. encrypt(String plainText, String password)
  4. encryptPassword(String unencrypted)
  5. fetchUrl(String url, String username, String password)
  6. fromString(String s)
  7. fromStringSafe(final String s)
  8. generateSalt()
  9. generateSalt(int clientNonceByteCount)