|
urlEncode() converts a String
into a MIME format called
"x-www-form-urlencoded
" format. See java.net.URLEncoder for details.
urlDecode() converts a "x-www-form-urlencoded
" string to a plain String
. See java.net.URLDecoder for details.
|
base64encode(input) encodes data read from input stream using BASE64. If output is specified, the encoded data is written to it. Otherwise it returns a java.io.PipedInputStream object which can be read with read() function.
base64decode(input) decodes data read from input stream using BASE64. If output is specified, the decoded data is written to it. Otherwise it returns a java.io.PipedInputStream object which can be read with read() function.
read(base64encode(open("pnuts.bat")))
These functions depend on sun.misc.BASE64Encoder class and sun.misc.BASE64Decoder class respectively.
|
uuencode(input) encodes data read from input stream using "uuencode". If output is specified, the encoded data is written to it. Otherwise it returns a java.io.PipedInputStream object which can be read with read() function. If name is specified the name will be included in the output.
uudecode(input) decodes data read from input stream using "uudecode". If output is specified, the decoded data is written to it. Otherwise it returns a java.io.PipedInputStream object which can be read with read() function.
read(uuencode(getResource("/init.pnut").openStream()))
These functions depend on sun.misc.UUEncoder class and sun.misc.UUDecoder class respectively.
|
stringToUnicode() converts a string to its unicode-escaped sequence.
unicodeToString() converts a unicode-escaped sequence to the corresponding string.