R - the pipeline result typepublic class Base64Encoder<R> extends ErrorHandlingIntPipeline<R>
| Modifier and Type | Class and Description |
|---|---|
static class |
Base64Encoder.State |
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
encodingArrayMain |
static byte[] |
encodingArrayURL |
| Constructor and Description |
|---|
Base64Encoder(IntAcceptor<? extends R> downstream) |
Base64Encoder(IntAcceptor<? extends R> downstream,
boolean urlSafe) |
Base64Encoder(IntAcceptor<? extends R> downstream,
boolean urlSafe,
ErrorStrategy errorStrategy) |
Base64Encoder(IntAcceptor<? extends R> downstream,
ErrorStrategy errorStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptInt(int value)
Accept an
int, after closed check and test for end of data. |
void |
close()
Close the pipeline.
|
static byte[] |
convert(byte[] input)
Convert a byte array using the
Base64Encoder converter. |
static byte[] |
convert(byte[] input,
boolean urlSafe)
Convert a byte array using the
Base64Encoder converter. |
static byte[] |
convert(byte[] input,
boolean urlSafe,
ErrorStrategy errorStrategy)
Convert a byte array using the
Base64Encoder converter. |
static byte[] |
convert(byte[] input,
ErrorStrategy errorStrategy)
Convert a byte array using the
Base64Encoder converter. |
static List<Integer> |
convert(List<Integer> input)
Convert a
List<Integer> (Unicode code points) using the Base64Encoder converter. |
static List<Integer> |
convert(List<Integer> input,
boolean urlSafe)
Convert a
List<Integer> (Unicode code points) using the Base64Encoder converter. |
static List<Integer> |
convert(List<Integer> input,
boolean urlSafe,
ErrorStrategy errorStrategy)
Convert a
List<Integer> (Unicode code points) using the Base64Encoder converter. |
static List<Integer> |
convert(List<Integer> input,
ErrorStrategy errorStrategy)
Convert a
List<Integer> (Unicode code points) using the Base64Encoder converter. |
static String |
convert(String input)
Convert a
String using the Base64Encoder converter. |
static String |
convert(String input,
boolean urlSafe)
Convert a
String using the Base64Encoder converter. |
static String |
convert(String input,
boolean urlSafe,
ErrorStrategy errorStrategy)
Convert a
String using the Base64Encoder converter. |
static String |
convert(String input,
ErrorStrategy errorStrategy)
Convert a
String using the Base64Encoder converter. |
handleErroremit, flush, getDownstreamaccept, acceptisClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, acceptandThengetResult, isComplete, isStageCompleteisClosed, safeClosepublic static final byte[] encodingArrayMain
public static final byte[] encodingArrayURL
public Base64Encoder(IntAcceptor<? extends R> downstream, boolean urlSafe, ErrorStrategy errorStrategy)
public Base64Encoder(IntAcceptor<? extends R> downstream, ErrorStrategy errorStrategy)
public Base64Encoder(IntAcceptor<? extends R> downstream, boolean urlSafe)
public Base64Encoder(IntAcceptor<? extends R> downstream)
public void acceptInt(int value)
AbstractIntAcceptorint, after closed check and test for end of data. Implementing classes must supply an
implementation of this method.acceptInt in class AbstractIntAcceptor<R>value - the input valuepublic void close()
AbstractIntPipelineclose in interface AutoCloseableclose in class AbstractIntPipeline<R>public static byte[] convert(byte[] input,
boolean urlSafe,
ErrorStrategy errorStrategy)
Base64Encoder converter.input - the input as a byte arrayurlSafe - true to use the URL-safe encoding characterserrorStrategy - the ErrorStrategyStringpublic static byte[] convert(byte[] input,
ErrorStrategy errorStrategy)
Base64Encoder converter.input - the input as a byte arrayerrorStrategy - the ErrorStrategyStringpublic static byte[] convert(byte[] input,
boolean urlSafe)
Base64Encoder converter.input - the input as a byte arrayurlSafe - true to use the URL-safe encoding charactersStringpublic static byte[] convert(byte[] input)
Base64Encoder converter.input - the input as a byte arrayStringpublic static String convert(String input, boolean urlSafe, ErrorStrategy errorStrategy)
String using the Base64Encoder converter.input - the input as a StringurlSafe - true to use the URL-safe encoding characterserrorStrategy - the ErrorStrategyStringpublic static String convert(String input, ErrorStrategy errorStrategy)
String using the Base64Encoder converter.input - the input as a StringerrorStrategy - the ErrorStrategyStringpublic static String convert(String input, boolean urlSafe)
String using the Base64Encoder converter.input - the input as a StringurlSafe - true to use the URL-safe encoding charactersStringpublic static String convert(String input)
String using the Base64Encoder converter.input - the input as a StringStringpublic static List<Integer> convert(List<Integer> input, boolean urlSafe, ErrorStrategy errorStrategy)
List<Integer> (Unicode code points) using the Base64Encoder converter.input - the input as a List<Integer>urlSafe - true to use the URL-safe encoding characterserrorStrategy - the ErrorStrategyStringpublic static List<Integer> convert(List<Integer> input, ErrorStrategy errorStrategy)
List<Integer> (Unicode code points) using the Base64Encoder converter.input - the input as a List<Integer>errorStrategy - the ErrorStrategyStringpublic static List<Integer> convert(List<Integer> input, boolean urlSafe)
List<Integer> (Unicode code points) using the Base64Encoder converter.input - the input as a List<Integer>urlSafe - true to use the URL-safe encoding charactersStringCopyright © 2025. All rights reserved.