gnu.crypto.util
public class Base64 extends Object
Version: $Revision: 1.4 $
Method Summary | |
---|---|
static byte[] | decode(String s)
Decodes data from Base64 notation.
|
static byte[] | decode(byte[] src, int off, int len)
Decodes Base64 content in byte array format and returns the decoded byte
array.
|
static String | encode(byte[] src)
Encodes a byte array into Base64 notation. |
static String | encode(byte[] src, int off, int len, boolean breakLines)
Encodes a byte array into Base64 notation.
|
Parameters: s the string to decode.
Returns: the decoded data.
Parameters: src the Base64 encoded data. off the offset of where to begin decoding. len the length of characters to decode.
Returns: the decoded data.
Throws: IllegalArgumentException if src
contains an illegal
Base-64 character.
encode(source, 0, source.length)
.
Parameters: src the data to convert.
Parameters: src the data to convert. off offset in array where conversion should begin. len length of data to convert. breakLines break lines at 80 characters or less.