Package org.cryptacular.codec
Class Base64Decoder.Builder
java.lang.Object
org.cryptacular.codec.Base64Decoder.Builder
- Enclosing class:
- Base64Decoder
Builder for base-64 decoders.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a base-64 decoder with the given options.setAlphabet
(String alpha) Sets an arbitrary 64-character alphabet for decoding.setPadding
(boolean pad) Sets padding flag on the decoder.setUrlSafe
(boolean safe) Sets the URL-safe alphabet flag.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setUrlSafe
Sets the URL-safe alphabet flag.- Parameters:
safe
- True for URL-safe alphabet, false otherwise.- Returns:
- This instance.
-
setAlphabet
Sets an arbitrary 64-character alphabet for decoding.- Parameters:
alpha
- Alternative alphabet.- Returns:
- This instance.
-
setPadding
Sets padding flag on the decoder.- Parameters:
pad
- True for base-64 padding, false otherwise.- Returns:
- This instance.
-
build
Builds a base-64 decoder with the given options.- Returns:
- New base-64 decoder instance.
-