Android Utililty Methods Byte Array Encode

List of utility methods to do Byte Array Encode

Description

The list of methods to do Byte Array Encode are organized into topic(s).

Method

Stringencode(@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;
...
Stringencode(@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;
...
Stringencode(@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) {
...
Stringencode(byte[] source)
Encodes a byte array into Base64 notation.
return encode(source, 0, source.length, ALPHABET, true);
Stringencode(byte[] source)
Encodes a byte array into Base64 notation.
return encode(source, 0, source.length, ALPHABET, true);
Stringencode(byte[] source)
Encodes a byte array into Base64 notation.
return encode(source, 0, source.length, ALPHABET, true);
Stringencode(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;
...
Stringencode(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;
...