com.googlecode.jinahya.twitter.xauth
Class Encode
java.lang.Object
com.googlecode.jinahya.twitter.xauth.Encode
public class Encode
- extends Object
- Author:
- Jin Kwon
- See Also:
- RFC 3986,
RFC 4648
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
percent
public static String percent(String input)
throws UnsupportedEncodingException
- Parameters:
input -
- Returns:
-
- Throws:
UnsupportedEncodingException- See Also:
-
Percent-Encoding (RFC 3986)
percent
public static String percent(byte[] input)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
url
public static String url(String input)
throws UnsupportedEncodingException
- Parameters:
input -
- Returns:
-
- Throws:
UnsupportedEncodingException
url
public static String url(byte[] input)
- Parameters:
input -
- Returns:
base16
public static String base16(byte[] input)
- Encodes given
input into a Base16(hex) string.
- Parameters:
input - octet input
- Returns:
- a base 16 encoded string
- See Also:
- Base 16
Encoding (RFC 4648)
base64
public static String base64(byte[] input)
- Encodes given byte array into a BASE64 string.
- Parameters:
input - octet input
- Returns:
- a BASE64 string
- See Also:
- Base 64
Encoding (RFC 4648)
Copyright © 2011. All Rights Reserved.