public class Base32String extends 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. TODO(sarvar): Revisit this encoding and whether this ambiguity needs fixing.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Base32String.DecodingException |
| 限定符 | 构造器和说明 |
|---|---|
protected |
Base32String(String alphabet) |
protected Base32String(String alphabet)
public static byte[] decode(String encoded) throws Base32String.DecodingException
protected byte[] decodeInternal(String encoded) throws Base32String.DecodingException
public static String encode(byte[] data)
protected String encodeInternal(byte[] data)
public Object clone() throws CloneNotSupportedException
clone 在类中 ObjectCloneNotSupportedExceptionCopyright © 2016–2019. All rights reserved.