|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--gnu.crypto.util.Base64
Most of this implementation is from Robert Harder's public domain Base64 code (version 1.4.1 available from <http://iharder.net/xmlizable>).
| Method Summary | |
|---|---|
static byte[] |
decode(byte[] src,
int off,
int len)
Decodes Base64 content in byte array format and returns the decoded byte array. |
static byte[] |
decode(java.lang.String s)
Decodes data from Base64 notation. |
static java.lang.String |
encode(byte[] src)
Encodes a byte array into Base64 notation. |
static java.lang.String |
encode(byte[] src,
int off,
int len,
boolean breakLines)
Encodes a byte array into Base64 notation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final java.lang.String encode(byte[] src)
encode(source, 0, source.length).
src - the data to convert.
public static final java.lang.String encode(byte[] src,
int off,
int len,
boolean breakLines)
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.
public static final byte[] decode(java.lang.String s)
throws java.io.UnsupportedEncodingException
s - the string to decode.
java.io.UnsupportedEncodingException
public static byte[] decode(byte[] src,
int off,
int len)
src - the Base64 encoded data.off - the offset of where to begin decoding.len - the length of characters to decode.
java.lang.IllegalArgumentException - if src contains an illegal
Base-64 character.
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||