private static final class Base64.Decoder extends java.lang.Object implements ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor
Modifier and Type | Field and Description |
---|---|
private byte[] |
b4 |
private int |
b4Posn |
private byte[] |
decodabet |
private ByteBuf |
dest |
private int |
outBuffPosn |
private byte |
sbiCrop |
private byte |
sbiDecode |
FIND_CR, FIND_CRLF, FIND_LF, FIND_LINEAR_WHITESPACE, FIND_NON_CR, FIND_NON_CRLF, FIND_NON_LF, FIND_NON_LINEAR_WHITESPACE, FIND_NON_NUL, FIND_NUL, FIND_SEMI_COLON
Modifier | Constructor and Description |
---|---|
private |
Decoder() |
Modifier and Type | Method and Description |
---|---|
(package private) ByteBuf |
decode(ByteBuf src,
int off,
int len,
ByteBufAllocator allocator,
Base64Dialect dialect) |
private static int |
decode4to3(byte[] src,
ByteBuf dest,
int destOffset,
byte[] decodabet) |
boolean |
process(byte value) |
private final byte[] b4
private int b4Posn
private byte sbiCrop
private byte sbiDecode
private byte[] decodabet
private int outBuffPosn
private ByteBuf dest
ByteBuf decode(ByteBuf src, int off, int len, ByteBufAllocator allocator, Base64Dialect dialect)
public boolean process(byte value) throws java.lang.Exception
process
in interface ByteProcessor
true
if the processor wants to continue the loop and handle the next byte in the buffer.
false
if the processor wants to stop handling bytes and abort the loop.java.lang.Exception
private static int decode4to3(byte[] src, ByteBuf dest, int destOffset, byte[] decodabet)