public class Base32String
extends java.lang.Object
The implementation is slightly different than in RFC 4648. During encoding, padding is not added, and during decoding the last incomplete chunk is not taken into account. The result is that multiple strings decode to the same byte array, for example, string of sixteen 7s ("7...7") and seventeen 7s both decode to the same byte array.
| Modifier and Type | Class and Description |
|---|---|
static class |
Base32String.DecodingException |
| Modifier | Constructor and Description |
|---|---|
protected |
Base32String(java.lang.String alphabet) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
static byte[] |
decode(java.lang.String encoded) |
protected byte[] |
decodeInternal(java.lang.String encoded) |
static java.lang.String |
encode(byte[] data) |
protected java.lang.String |
encodeInternal(byte[] data) |
public static byte[] decode(java.lang.String encoded)
throws Base32String.DecodingException
Base32String.DecodingExceptionprotected byte[] decodeInternal(java.lang.String encoded)
throws Base32String.DecodingException
Base32String.DecodingExceptionpublic static java.lang.String encode(byte[] data)
protected java.lang.String encodeInternal(byte[] data)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException