Decodes a BASE64 encoded char array.
Decodes a BASE64 encoded char array. All illegal characters will be ignored and can handle both arrays with and without line separators.
The source array. null or length 0 will return an empty array.
The decoded array of bytes. May be of length 0. Will be null if the legal characters
(including '=') isn't divideable by 4. (I.e. definitely corrupted).
Decodes a BASE64 encoded char array that is known to be resonably well formatted.
Decodes a BASE64 encoded char array that is known to be resonably well formatted. The method is about twice as
fast as #decode(char[]). The preconditions are:
+ The array must have a line length of 76 chars OR no line separators at all (one line).
+ Line separator must be "\r\n", as specified in RFC 2045
+ The array must not contain illegal characters within the encoded string
+ The array CAN have illegal characters at the beginning and end, those will be dealt with appropriately.
The source array. Length 0 will return an empty array. null will throw an exception.
The decoded array of bytes. May be of length 0.
Encodes a raw byte array into a BASE64 char[] representation i accordance with RFC 2045.
Encodes a raw byte array into a BASE64 char[] representation i accordance with RFC 2045.
The bytes to convert. If null or length 0 an empty array will be returned.
Optional "\r\n" after 76 characters, unless end of file.
No line separator will be in breach of RFC 2045 which specifies max 76 per line but will be a
little faster.
A BASE64 encoded array. Never null.
Encodes a raw byte array into a BASE64 String representation in accordance with RFC 2045.
Encodes a raw byte array into a BASE64 String representation in accordance with RFC 2045.
The bytes to convert. If null or length 0 an empty array will be returned.
Optional "\r\n" after 76 characters, unless end of file.
No line separator will be in breach of RFC 2045 which specifies max 76 per line but will be a
little faster.
A BASE64 encoded array. Never null.