|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.common.util.StringEncoding
public class StringEncoding
Utility class for encoding strings to and from byte arrays.
| Constructor Summary | |
|---|---|
StringEncoding(char[] userDigits)
Creates a new encoding based on the supplied set of digits. |
|
| Method Summary | |
|---|---|
byte[] |
decode(String encoded)
Decodes the given encoded string and returns the original raw bytes. |
String |
encode(byte[] data)
Returns the given bytes in their encoded form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringEncoding(char[] userDigits)
| Method Detail |
|---|
public String encode(byte[] data)
public byte[] decode(String encoded)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||