public class Base32Encoder extends AbstractBaseNEncoder
lineLength
Constructor and Description |
---|
Base32Encoder()
Creates a new instance that produces base 32-encoded output in the RFC 4648 alphabet,
ABCDEFGHIJKLMNOPQRSTUVWXYZ234567 , with no line breaks in the output. |
Base32Encoder(int charactersPerLine)
Creates a new instance that produces base 32-encoded output in the RFC 4648 alphabet,
ABCDEFGHIJKLMNOPQRSTUVWXYZ234567 , with the given number of characters per line in the output. |
Base32Encoder(String alphabet)
Creates a new instance that produces base 32-encoded output in the given 32-character alphabet with no line
breaks in the output.
|
Base32Encoder(String alphabet,
int charactersPerLine)
Creates a new instance that produces base 32-encoded output in the given 32-character alphabet
with the given number of characters per line in the output.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getBitsPerChar() |
protected int |
getBlockLength() |
encode, encodingTable, finalize, isPaddedOutput, outputSize, setPaddedOutput
public Base32Encoder()
ABCDEFGHIJKLMNOPQRSTUVWXYZ234567
, with no line breaks in the output.public Base32Encoder(int charactersPerLine)
ABCDEFGHIJKLMNOPQRSTUVWXYZ234567
, with the given number of characters per line in the output.charactersPerLine
- Number of characters per line. A zero or negative value disables line breaks.public Base32Encoder(String alphabet)
alphabet
- 32-character alphabet to use.public Base32Encoder(String alphabet, int charactersPerLine)
alphabet
- 32-character alphabet to use.charactersPerLine
- Number of characters per line. A zero or negative value disables line breaks.protected int getBlockLength()
getBlockLength
in class AbstractBaseNEncoder
protected int getBitsPerChar()
getBitsPerChar
in class AbstractBaseNEncoder
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.