Example usage for Java android.util Base64 fields, constructors, methods, implement or subclass
The text is from its open source code.
int | DEFAULT Default values for encoder/decoder flags. |
int | NO_PADDING Encoder flag bit to omit the padding '=' characters at the end of the output (if any). |
int | NO_WRAP Encoder flag bit to omit all line terminators (i.e., the output will be on one long line). |
int | CRLF Encoder flag bit to indicate lines should be terminated with a CRLF pair instead of just an LF. |
int | URL_SAFE Encoder/decoder flag bit to indicate using the "URL and filename safe" variant of Base64 (see RFC 3548 section 4) where - and _ are used in place of + and / . |
int | NO_CLOSE Flag to pass to Base64OutputStream to indicate that it should not close the output stream it is wrapping when it itself is closed. |
byte[] | decode(String str, int flags) Decode the Base64-encoded data in input and return the data in a new byte array. |
byte[] | decode(byte[] input, int flags) Decode the Base64-encoded data in input and return the data in a new byte array. |
byte[] | encode(byte[] input, int flags) Base64-encode the given data and return a newly allocated byte[] with the result. |
String | encodeToString(byte[] input, int flags) Base64-encode the given data and return a newly allocated String with the result. |
String | encodeToString(byte[] input, int offset, int len, int flags) Base64-encode the given data and return a newly allocated String with the result. |