|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.data.Base32
public class Base32
Encodes and decodes to and from Base32 notation. Ref: RFC 3548 Don't bother with '=' padding characters on encode or accept them on decode (i.e. don't require 5-character groups). No whitespace allowed. Decode accepts upper or lower case.
Method Summary | |
---|---|
static byte[] |
decode(String s)
Case-insensitive. |
static String |
decodeToString(String s)
Decodes data from Base32 notation and returns it as a string. |
static String |
encode(byte[] source)
Returns lower case. |
static String |
encode(String source)
Returns lower case. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void main(String[] args)
public static String encode(String source)
source
- if null will return ""public static String encode(byte[] source)
source
- The data to convert non-nullpublic static String decodeToString(String s)
s
- the string to decode, if null returns null
public static byte[] decode(String s)
s
- non-null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |