|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.util.Base64Converter
public class Base64Converter
BASE 64 encoding of a String or an array of bytes. Based on RFC 1421.
Field Summary | |
---|---|
static char[] |
alphabet
Provided for BC purposes |
Constructor Summary | |
---|---|
Base64Converter()
|
Method Summary | |
---|---|
java.lang.String |
encode(byte[] octetString)
Encode a byte array into base64 encoding. |
java.lang.String |
encode(java.lang.String s)
Encode a string into base64 encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char[] alphabet
Constructor Detail |
---|
public Base64Converter()
Method Detail |
---|
public java.lang.String encode(java.lang.String s)
s
- the string to encode.
public java.lang.String encode(byte[] octetString)
octetString
- the byte array to encode.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |