|
Femto Web Server V1.4-F | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--dfischer.femtowebserver.lib.Base64Encoder
Converts data to a base64 transformed string.
Usually one of the methods encode() must be used. However if you plan to pack some data to a value of a HTTP CGI parameter, one of the methods encodeForCGI() should be used. encodeForCGI() does the same job like encode(), but after the base64 transformation has been done, some result chars of the base64 string will be replaced:
Base64Decoder| Method Summary | |
static java.lang.String |
encode(byte[] b)
Converts a byte[] array to a base64 transformed string. |
static java.lang.String |
encode(java.lang.String s)
Converts a string to a base64 transformed string. |
static java.lang.String |
encodeForCGI(byte[] b)
Converts a byte[] array to a special, non standard base64 CGI format. |
static java.lang.String |
encodeForCGI(java.lang.String s)
Converts a string to a special, non standard base64 CGI format. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String encode(java.lang.String s)
s - input string to convertpublic static java.lang.String encode(byte[] b)
b - byte[] array to convertpublic static java.lang.String encodeForCGI(java.lang.String s)
s - input string to convertpublic static java.lang.String encodeForCGI(byte[] b)
b - byte[] array to convert
|
Femto Web Server V1.4-F | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||