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 the result as a UTF-8 string. |
static String |
decodeToString(String encoded)
Decodes given
encoded and returns the result as a 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 the result as a US-ASCII
encoded string. |
static String |
encodeToString(String decoded)
Encodes given
decoded and returns the result as a US-ASCII
encoded string. |
public static byte[] encode(byte[] decoded)
decoded.decoded - input bytes to encode.public static byte[] encode(String decoded)
decoded.decoded - input string to encode.public static String encodeToString(byte[] decoded)
decoded and returns the result as a US-ASCII
encoded string.decoded - the bytes to encodepublic static String encodeToString(String decoded)
decoded and returns the result as a US-ASCII
encoded string.decoded - the string to encode.public static byte[] decode(byte[] encoded)
encoded.encoded - the bytes to encodepublic static byte[] decode(String encoded)
encoded.encoded - the string to decode.public static String decodeToString(byte[] encoded)
encoded and returns the result as a UTF-8 string.encoded - the bytes to decode.Copyright © 2011-2013. All Rights Reserved.