Example usage for android.util Base64 DEFAULT

List of usage examples for android.util Base64 DEFAULT

Introduction

In this page you can find the example usage for android.util Base64 DEFAULT.

Prototype

int DEFAULT

To view the source code for android.util Base64 DEFAULT.

Click Source Link

Document

Default values for encoder/decoder flags.

Usage

From source file:Main.java

public static byte[] base64Decode(String s) {
    return Base64.decode(s, Base64.DEFAULT);
}

From source file:Main.java

private static byte[] decode(String src) {
    return Base64.decode(src, Base64.DEFAULT);
}

From source file:Main.java

public static byte[] base64Dec(String str) {
    return Base64.decode(str, Base64.DEFAULT);
}

From source file:Main.java

private static String toHex(byte[] buf) {
    return Base64.encodeToString(buf, Base64.DEFAULT);
}

From source file:Main.java

public static byte[] decode(byte[] input) {
    return Base64.decode(input, Base64.DEFAULT);
}

From source file:Main.java

public static String base64Encode(byte[] b) {
    return Base64.encodeToString(b, Base64.DEFAULT).trim();
}

From source file:Main.java

private static String encode(byte[] src) {
    return Base64.encodeToString(src, Base64.DEFAULT);
}

From source file:Main.java

private static byte[] toByte(String hexString) {
    return Base64.decode(hexString, Base64.DEFAULT);
}

From source file:Main.java

public static String decode(String str) {
    return new String(Base64.decode(str, Base64.DEFAULT));
}

From source file:Main.java

public static String encode(byte[] source) {
    return Base64.encodeToString(source, Base64.DEFAULT);
}