Class Base16.Builder
java.lang.Object
org.apache.commons.codec.binary.BaseNCodec.AbstractBuilder<Base16, Base16.Builder>
org.apache.commons.codec.binary.Base16.Builder
- Enclosing class:
Base16
Builds
Base16 instances.
To configure a new instance, use a Base16.Builder. For example:
Base16 Base16 = Base16.builder() .setDecodingPolicy(DecodingPolicy.LENIENT) // default is lenient .get()
- Since:
- 1.20.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()setEncodeTable(byte... encodeTable) Sets the encode table.setLowerCase(boolean lowerCase) Sets whether to use the the lower-case Base16 alphabet.Methods inherited from class BaseNCodec.AbstractBuilder
setDecodeTable, setDecodingPolicy, setLineLength, setLineSeparator, setPadding
-
Constructor Details
-
Builder
public Builder()Constructs a new instance.
-
-
Method Details
-
get
-
setEncodeTable
Description copied from class:BaseNCodec.AbstractBuilderSets the encode table.- Overrides:
setEncodeTablein classBaseNCodec.AbstractBuilder<Base16, Base16.Builder>- Parameters:
encodeTable- the encode table, null resets to the default.- Returns:
thisinstance.
-
setLowerCase
Sets whether to use the the lower-case Base16 alphabet.- Parameters:
lowerCase-trueto use the lower-case Base16 alphabet.- Returns:
thisinstance.
-