public static class Base64Encoder.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Base64Encoder |
build()
Builds a base-64 encoder with the given options.
|
Base64Encoder.Builder |
setAlphabet(String alpha)
Sets an arbitrary 64-character alphabet for encoding.
|
Base64Encoder.Builder |
setCharactersPerLine(int lineLength)
Sets the number of characters per line in output produced by the encoder.
|
Base64Encoder.Builder |
setPadding(boolean pad)
Sets padding flag on the encoder.
|
Base64Encoder.Builder |
setUrlSafe(boolean safe)
Sets the URL-safe alphabet flag.
|
public Base64Encoder.Builder setUrlSafe(boolean safe)
safe
- True for URL-safe alphabet, false otherwise.public Base64Encoder.Builder setAlphabet(String alpha)
alpha
- Alternative alphabet.public Base64Encoder.Builder setPadding(boolean pad)
pad
- True for base-64 padding, false otherwise.public Base64Encoder.Builder setCharactersPerLine(int lineLength)
lineLength
- Number of characters per line. Set to -1
to suppress line breaks.public Base64Encoder build()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.