Package org.apache.commons.codec.binary
Class Base58.Builder
java.lang.Object
org.apache.commons.codec.binary.BaseNCodec.AbstractBuilder<Base58,Base58.Builder>
org.apache.commons.codec.binary.Base58.Builder
- Enclosing class:
Base58
Builds
Base58 instances with custom configuration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Builds a new Base58 instance with the configured settings.setEncodeTable(byte... encodeTable) Sets the encode table and derives the matching decode table.Methods inherited from class org.apache.commons.codec.binary.BaseNCodec.AbstractBuilder
setDecodeTable, setDecodingPolicy, setLineLength, setLineSeparator, setPadding
-
Constructor Details
-
Builder
public Builder()Constructs a new Base58 builder.
-
-
Method Details
-
get
Builds a new Base58 instance with the configured settings.- Returns:
- A new Base58 codec.
-
setEncodeTable
Sets the encode table and derives the matching decode table.- Overrides:
setEncodeTablein classBaseNCodec.AbstractBuilder<Base58,Base58.Builder> - Parameters:
encodeTable- The encode table with exactly 58 unique entries, null resets to the default.- Returns:
thisinstance.- Throws:
IllegalArgumentException- if the encode table does not contain exactly 58 unique entries.
-