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[]decodeWebSafe(byte[] source)
Decodes web safe Base64 content in byte array format and returns the decoded data.
return decodeWebSafe(source, 0, source.length);
byte[]decodeWebSafe(byte[] source, int off, int len)
Decodes web safe Base64 content in byte array format and returns the decoded byte array.
return decode(source, off, len, WEBSAFE_DECODABET);
byte[]decodeWebSafe(byte[] source, int off, int len)
Decodes web safe Base64 content in byte array format and returns the decoded byte array.
return decode(source, off, len, WEBSAFE_DECODABET);
byte[]decodeWebSafe(byte[] source, int off, int len)
Decodes web safe Base64 content in byte array format and returns the decoded byte array.
return decode(source, off, len, WEBSAFE_DECODABET);
intdecode4to3(byte[] source, int srcOffset, byte[] destination, int destOffset, int options)
Decodes four bytes from array source and writes the resulting bytes (up to three of them) to destination.
if (source == null) {
    throw new NullPointerException("Source array was null.");
if (destination == null) {
    throw new NullPointerException("Destination array was null.");
if (srcOffset < 0 || srcOffset + 3 >= source.length) {
    throw new IllegalArgumentException(
...
byte[]getDecodabet(int options)
Returns one of the _SOMETHING_DECODABET byte arrays depending on the options specified.
if ((options & URL_SAFE) == URL_SAFE) {
    return _URL_SAFE_DECODABET;
} else if ((options & ORDERED) == ORDERED) {
    return _ORDERED_DECODABET;
} else {
    return _STANDARD_DECODABET;