List of utility methods to do Byte Array Encode
String | encode(@Nonnull byte[] input) encode if (input.length == 0) return ""; input = copyOfRange(input, 0, input.length); int zeroCount = 0; while (zeroCount < input.length && input[zeroCount] == 0) ++zeroCount; final byte[] temp = new byte[input.length * 2]; int j = temp.length; ... |
String | encode(@Nonnull byte[] input) encode if (input.length == 0) return ""; input = copyOfRange(input, 0, input.length); int zeroCount = 0; while (zeroCount < input.length && input[zeroCount] == 0) ++zeroCount; final byte[] temp = new byte[input.length * 2]; int j = temp.length; ... |
String | encode(@Nonnull byte[] input) encode if (input.length == 0) return ""; input = copyOfRange(input, 0, input.length); int zeroCount = 0; while (zeroCount < input.length && input[zeroCount] == 0) ++zeroCount; final byte[] temp = new byte[input.length * 2]; int j = temp.length; ... |
byte[] | encode(byte[] input, int flags) Base64-encode the given data and return a newly allocated byte[] with the result. return encode(input, 0, input.length, flags);
|
byte[] | encode(byte[] input, int offset, int len, int flags) Base64-encode the given data and return a newly allocated byte[] with the result. Encoder encoder = new Encoder(flags, null); int output_len = len / 3 * 4; if (encoder.do_padding) { if (len % 3 > 0) { output_len += 4; } else { switch (len % 3) { ... |
String | encode(byte[] source) Encodes a byte array into Base64 notation. return encode(source, 0, source.length, ALPHABET, true);
|
String | encode(byte[] source) Encodes a byte array into Base64 notation. return encode(source, 0, source.length, ALPHABET, true);
|
String | encode(byte[] source) Encodes a byte array into Base64 notation. return encode(source, 0, source.length, ALPHABET, true);
|
String | encode(byte[] source, int off, int len, byte[] alphabet, boolean doPadding) Encodes a byte array into Base64 notation. byte[] outBuff = encode(source, off, len, alphabet, Integer.MAX_VALUE); int outLen = outBuff.length; while (doPadding == false && outLen > 0) { if (outBuff[outLen - 1] != '=') { break; outLen -= 1; ... |
String | encode(byte[] source, int off, int len, byte[] alphabet, boolean doPadding) Encodes a byte array into Base64 notation. byte[] outBuff = encode(source, off, len, alphabet, Integer.MAX_VALUE); int outLen = outBuff.length; while (doPadding == false && outLen > 0) { if (outBuff[outLen - 1] != '=') { break; outLen -= 1; ... |