Package org.cryptacular.codec
Class Base32Decoder
java.lang.Object
org.cryptacular.codec.AbstractBaseNDecoder
org.cryptacular.codec.Base32Decoder
- All Implemented Interfaces:
Decoder
Stateful base 32 decoder with support for line breaks.
- Author:
- Middleware Services
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance using the RFC 4648 alphabet,ABCDEFGHIJKLMNOPQRSTUVWXYZ234567
, for decoding.Base32Decoder
(String alphabet) Creates a new instance using the given 32-character alphabet for decoding. -
Method Summary
Methods inherited from class org.cryptacular.codec.AbstractBaseNDecoder
decode, decodingTable, finalize, isPaddedInput, outputSize, setPaddedInput
-
Constructor Details
-
Base32Decoder
public Base32Decoder()Creates a new instance using the RFC 4648 alphabet,ABCDEFGHIJKLMNOPQRSTUVWXYZ234567
, for decoding. -
Base32Decoder
Creates a new instance using the given 32-character alphabet for decoding.- Parameters:
alphabet
- 32-character alphabet to use.
-
-
Method Details
-
getBlockLength
protected int getBlockLength()- Specified by:
getBlockLength
in classAbstractBaseNDecoder
- Returns:
- Number of bits in a block of encoded characters.
-
getBitsPerChar
protected int getBitsPerChar()- Specified by:
getBitsPerChar
in classAbstractBaseNDecoder
- Returns:
- Number of bits encoding a single character.
-