Class Base32String


  • public class Base32String
    extends java.lang.Object
    Encodes arbitrary byte arrays as case-insensitive base-32 strings.

    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.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Base32String​(java.lang.String alphabet)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Base32String

        protected Base32String​(java.lang.String alphabet)