public class Per extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Per()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] encoded)
Decodes given
encoded. |
static byte[] |
decode(String encoded)
Decodes given
encoded. |
static String |
decodeToString(byte[] encoded)
Decodes given
encoded and returns output as an UTF-8 string. |
static String |
decodeToString(String encoded)
Decodes given
encoded and returns as an UTF-8 string. |
static byte[] |
encode(byte[] decoded)
Encodes given
decoded. |
static byte[] |
encode(String decoded)
Encodes given
decoded. |
static String |
encodeToString(byte[] decoded)
Encodes given
decoded and returns as a US-ASCII encoded string. |
static String |
encodeToString(String decoded)
Encodes given
decoded and returns as a US-ASCII encoded string. |
public static byte[] decode(byte[] encoded)
encoded.encoded - the bytes to encodepublic static byte[] decode(String encoded)
encoded.encoded - the US-ASCII string to decodepublic static String decodeToString(byte[] encoded)
encoded and returns output as an UTF-8 string.encoded - the octets to decodepublic static String decodeToString(String encoded)
encoded and returns as an UTF-8 string.encoded - the string to decodepublic static byte[] encode(byte[] decoded)
decoded.decoded - the octets to encodepublic static byte[] encode(String decoded)
decoded.decoded - the UTF-8 string to encodepublic static String encodeToString(byte[] decoded)
decoded and returns as a US-ASCII encoded string.decoded - the octets to encodeCopyright © 2011-2012. All Rights Reserved.