|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.util.Base32
public final class Base32
A Base32 implementation which encodes and decodes according to RFC3548's Base32.
This class is a slightly modified version of code originally written by Robert Kaye and Gordon Mohr which is now in the public domain.
Method Summary | |
---|---|
static byte[] |
decode(String base32)
Decodes the given Base32 String to a raw byte array. |
static String |
encode(byte[] bytes)
Encodes byte array to Base32 String. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String encode(byte[] bytes)
bytes
- Bytes to encode.
bytes
as a String.public static byte[] decode(String base32)
base32
- A string encoded as base32.
base32
String as a raw byte array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |