Package org.apache.commons.codec.binary
Class Base32.Builder
java.lang.Object
org.apache.commons.codec.binary.BaseNCodec.AbstractBuilder<Base32,Base32.Builder>
org.apache.commons.codec.binary.Base32.Builder
- Enclosing class:
- Base32
Builds
Base32
instances.- Since:
- 1.17.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
setHexDecodeTable
(boolean useHex) Sets the decode table to use Base32 hexadecimal iftrue
, otherwise use the Base32 alphabet.setHexEncodeTable
(boolean useHex) Sets the encode table to use Base32 hexadecimal iftrue
, otherwise use the Base32 alphabet.Methods inherited from class org.apache.commons.codec.binary.BaseNCodec.AbstractBuilder
setDecodingPolicy, setEncodeTable, setLineLength, setLineSeparator, setPadding
-
Constructor Details
-
Builder
public Builder()Constructs a new instance.
-
-
Method Details
-
get
-
setHexDecodeTable
Sets the decode table to use Base32 hexadecimal iftrue
, otherwise use the Base32 alphabet.This overrides a value previously set with
BaseNCodec.AbstractBuilder.setEncodeTable(byte...)
.- Parameters:
useHex
- use Base32 hexadecimal iftrue
, otherwise use the Base32 alphabet.- Returns:
- this instance.
- Since:
- 1.18.0
-
setHexEncodeTable
Sets the encode table to use Base32 hexadecimal iftrue
, otherwise use the Base32 alphabet.This overrides a value previously set with
BaseNCodec.AbstractBuilder.setEncodeTable(byte...)
.- Parameters:
useHex
- use Base32 hexadecimal iftrue
, otherwise use the Base32 alphabet.- Returns:
- this instance.
- Since:
- 1.18.0
-