public final class StringBase64Decoder extends Base64DecoderBase
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
_currSegment
Base64 content String being currently processed.
|
(package private) int |
_currSegmentEnd |
(package private) int |
_currSegmentPtr |
_byteAggr, _decodedData, _state, _variant, INT_SPACE, STATE_INITIAL, STATE_OUTPUT_1, STATE_OUTPUT_2, STATE_OUTPUT_3, STATE_VALID_1, STATE_VALID_2, STATE_VALID_2_AND_PADDING, STATE_VALID_3| Constructor and Description |
|---|
StringBase64Decoder() |
| Modifier and Type | Method and Description |
|---|---|
int |
decode(byte[] resultBuffer,
int resultOffset,
int maxLength)
Method that does actual decoding
|
void |
init(Base64Variant variant,
boolean firstChunk,
java.lang.String segment) |
decodeCompletely, endOfContent, getByteAggregator, hasData, reportInvalidChar, reportInvalidCharjava.lang.String _currSegment
int _currSegmentPtr
int _currSegmentEnd
public void init(Base64Variant variant, boolean firstChunk, java.lang.String segment)
public int decode(byte[] resultBuffer,
int resultOffset,
int maxLength)
throws java.lang.IllegalArgumentException
Base64DecoderBasedecode in class Base64DecoderBaseresultBuffer - Buffer in which decoded bytes are returnedresultOffset - Offset that points to position to put the
first decoded byte in maxLength Maximum number of bytes that can be returned
in given bufferjava.lang.IllegalArgumentException