Coder (RabbIT/4)
Date: 2009-10-13

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rabbit.util
Class Coder

    java.lang.Object
      rabbit.util.Coder

    public class Coder

extends Object

This class encodes/decodes stuff to/from the web.

Method Summary
`static String` | `URLdecode(String enc)` URLDecode a string.
`static String` | `URLEncode(String str)` URLEncode a string.
`static String` | `uudecode(String base64string)` uudecode(base64) the given string.
`static String` | `uuencode(String str)` uuencode(base64) the given String.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### uudecode

    public static String uudecode(String base64string)

  uudecode(base64) the given string. useful for decoding basic Authentication

  Parameters:
    `base64string` - the String to decode.
  Returns:
    the decoded string.

### uuencode

    public static String uuencode(String str)

  uuencode(base64) the given String. useful for encoding basic authentication.

  Parameters:
    `str` - the String to encode.
  Returns:
    the encoded string.

### URLdecode

    public static String URLdecode(String enc)

  URLDecode a string. This is useful when your handling CGI-arguments..

  Parameters:
    `enc` - the encoded String.
  Returns:
    an unescaped String. ('%dd' => 'c', '+' => ' ')

### URLEncode

    public static String URLEncode(String str)

  URLEncode a string. Only a convenience function for java.net.URLEncoder.encode ()

  Parameters:
    `str` - the String to URLEncode.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD