Java android.util Base64 fields, constructors, methods, implement or subclass

Example usage for Java android.util Base64 fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.util Base64.

The text is from its open source code.

Field

intDEFAULT
Default values for encoder/decoder flags.
intNO_PADDING
Encoder flag bit to omit the padding '=' characters at the end of the output (if any).
intNO_WRAP
Encoder flag bit to omit all line terminators (i.e., the output will be on one long line).
intCRLF
Encoder flag bit to indicate lines should be terminated with a CRLF pair instead of just an LF.
intURL_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 / .
intNO_CLOSE
Flag to pass to Base64OutputStream to indicate that it should not close the output stream it is wrapping when it itself is closed.

Method

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.
StringencodeToString(byte[] input, int flags)
Base64-encode the given data and return a newly allocated String with the result.
StringencodeToString(byte[] input, int offset, int len, int flags)
Base64-encode the given data and return a newly allocated String with the result.