R - the pipeline result typepublic class Base64Decoder<R> extends ErrorHandlingIntPipeline<R>
| Modifier and Type | Class and Description |
|---|---|
static class |
Base64Decoder.State |
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
decodingArray |
static int |
EQUALS_SIGN_MARKER |
static int |
INVALID_MARKER |
static int |
MAX_DECODED_VALUE |
static int |
WHITESPACE_MARKER |
| Constructor and Description |
|---|
Base64Decoder(IntAcceptor<? extends R> downstream) |
Base64Decoder(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. |
static byte[] |
convert(byte[] input)
Convert a byte array using the
Base64Decoder converter. |
static byte[] |
convert(byte[] input,
ErrorStrategy errorStrategy)
Convert a byte array using the
Base64Decoder converter. |
static List<Integer> |
convert(List<Integer> input)
Convert a
List<Integer> (Unicode code points) using the Base64Decoder converter. |
static List<Integer> |
convert(List<Integer> input,
ErrorStrategy errorStrategy)
Convert a
List<Integer> (Unicode code points) using the Base64Decoder converter. |
static String |
convert(String input)
Convert a
String using the Base64Decoder converter. |
static String |
convert(String input,
ErrorStrategy errorStrategy)
Convert a
String using the Base64Decoder converter. |
boolean |
isStageComplete()
Return
true if all sequences in the input to this stage of the pipeline are complete, that is, the input
is not in the middle of a sequence requiring more data. |
handleErrorclose, emit, 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, isCompleteisClosed, safeClosepublic static final int INVALID_MARKER
public static final int EQUALS_SIGN_MARKER
public static final int WHITESPACE_MARKER
public static final int MAX_DECODED_VALUE
public static final byte[] decodingArray
public Base64Decoder(IntAcceptor<? extends R> downstream, ErrorStrategy errorStrategy)
public Base64Decoder(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 boolean isStageComplete()
BasePipelinetrue if all sequences in the input to this stage of the pipeline are complete, that is, the input
is not in the middle of a sequence requiring more data. This should be overridden by pipeline stages that
process complex sequences of input.true if the input is in the "complete" statepublic static byte[] convert(byte[] input,
ErrorStrategy errorStrategy)
Base64Decoder converter.input - the input as a byte arrayerrorStrategy - the ErrorStrategyStringpublic static byte[] convert(byte[] input)
Base64Decoder converter.input - the input as a byte arrayStringpublic static String convert(String input, ErrorStrategy errorStrategy)
String using the Base64Decoder converter.input - the input as a StringerrorStrategy - the ErrorStrategyStringpublic static String convert(String input)
String using the Base64Decoder converter.input - the input as a StringStringpublic static List<Integer> convert(List<Integer> input, ErrorStrategy errorStrategy)
List<Integer> (Unicode code points) using the Base64Decoder converter.input - the input as a List<Integer>errorStrategy - the ErrorStrategyStringCopyright © 2025. All rights reserved.