Android Base64 Decode base16decode(String base16Str)

Here you can find the source of base16decode(String base16Str)

Description

basedecode

License

Open Source License

Declaration

public static byte[] base16decode(String base16Str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static byte[] base16decode(String base16Str) {
        byte[] ret = new byte[base16Str.length() / 2];
        int j = 0;
        for (int i = 0; i < base16Str.length(); i += 2) {
            ret[j++] = (byte) (Integer.parseInt("" + base16Str.charAt(i)
                    + base16Str.charAt(i + 1), 16));
        }/*  w w  w .ja v a  2  s. c  o m*/
        return ret;
    }
}

Related

  1. decode(char[] arr)
  2. toString(String base64Encoded)
  3. toBytes(String base64Encoded)
  4. base64Decode(String property)
  5. decode(String src)
  6. base64Decode(final String text)
  7. base64ToText(String stringInput)
  8. from64(String a)
  9. fromBase64(String encoded)