public class Base64Encoder extends AbstractBaseNEncoder
Modifier and Type | Class and Description |
---|---|
static class |
Base64Encoder.Builder
Builder for base-64 encoders.
|
lineLength
Constructor and Description |
---|
Base64Encoder()
Creates a new instance that produces base 64-encoded output with no line breaks in the default character set.
|
Base64Encoder(boolean urlSafe)
Creates a new instance that produces base 64-encoded output with no line breaks and optional URL-safe character
set.
|
Base64Encoder(boolean urlSafe,
int charactersPerLine)
Creates a new instance that produces base 64-encoded output with the given number of characters per line with the
option of URL-safe character set.
|
Base64Encoder(int charactersPerLine)
Creates a new instance that produces base 64-encoded output with the given number of characters per line in the
default character set.
|
Base64Encoder(String alphabet)
Creates a new instance that produces base 64-encoded output with the given 64-character alphabet.
|
Base64Encoder(String alphabet,
int charactersPerLine)
Creates a new instance that produces base 64-encoded output with the given 64-character alphabet with line
wrapping at the specified line length;
|
Modifier and Type | Method and Description |
---|---|
protected int |
getBitsPerChar() |
protected int |
getBlockLength() |
encode, encodingTable, finalize, isPaddedOutput, outputSize, setPaddedOutput
public Base64Encoder()
public Base64Encoder(boolean urlSafe)
urlSafe
- True to use URL and filesystem-safe character set, false otherwise.public Base64Encoder(int charactersPerLine)
charactersPerLine
- Number of characters per line. A zero or negative value disables line breaks.public Base64Encoder(boolean urlSafe, int charactersPerLine)
urlSafe
- True to use URL and filesystem-safe character set, false otherwise.charactersPerLine
- Number of characters per line. A zero or negative value disables line breaks.public Base64Encoder(String alphabet)
alphabet
- 64-character alphabet to use.public Base64Encoder(String alphabet, int charactersPerLine)
alphabet
- 64-character alphabet to use.charactersPerLine
- Number of characters per line. A zero or negative value disables line breaks.protected int getBlockLength()
getBlockLength
in class AbstractBaseNEncoder
protected int getBitsPerChar()
getBitsPerChar
in class AbstractBaseNEncoder
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.