Android Utililty Methods Byte Array Decode

List of utility methods to do Byte Array Decode

Description

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

Method

byte[]decode(String s)
Decodes data from Base64 notation.
byte[] bytes = s.getBytes();
return decode(bytes, 0, bytes.length);
byte[]decode(String s)
Decodes data from Base64 notation.
byte[] bytes = s.getBytes();
return decode(bytes, 0, bytes.length);
byte[]decode(byte[] input, int flags)
Decode the Base64-encoded data in input and return the data in a new byte array.
return decode(input, 0, input.length, flags);
byte[]decode(byte[] input, int offset, int len, int flags)
Decode the Base64-encoded data in input and return the data in a new byte array.
Decoder decoder = new Decoder(flags, new byte[len * 3 / 4]);
if (!decoder.process(input, offset, len, true)) {
    throw new IllegalArgumentException("bad base-64");
if (decoder.op == decoder.output.length) {
    return decoder.output;
byte[] temp = new byte[decoder.op];
...
byte[]decode(byte[] source)
Decodes Base64 content in byte array format and returns the decoded byte array.
return decode(source, 0, source.length);
byte[]decode(byte[] source)
Decodes Base64 content in byte array format and returns the decoded byte array.
return decode(source, 0, source.length);
byte[]decode(byte[] source)
Decodes Base64 content in byte array format and returns the decoded byte array.
return decode(source, 0, source.length);
byte[]decode(byte[] source, int off, int len)
Decodes Base64 content in byte array format and returns the decoded byte array.
return decode(source, off, len, DECODABET);
byte[]decode(byte[] source, int off, int len)
Decodes Base64 content in byte array format and returns the decoded byte array.
return decode(source, off, len, DECODABET);
byte[]decode(byte[] source, int off, int len)
Decodes Base64 content in byte array format and returns the decoded byte array.
return decode(source, off, len, DECODABET);