Package io.netty.handler.codec.base64
Class Base64.Decoder
- java.lang.Object
-
- io.netty.handler.codec.base64.Base64.Decoder
-
- All Implemented Interfaces:
ByteProcessor
- Enclosing class:
- Base64
private static final class Base64.Decoder extends java.lang.Object implements ByteProcessor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.util.ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]b4private intb4Posnprivate byte[]decodabetprivate ByteBufdestprivate intoutBuffPosn-
Fields inherited from interface io.netty.util.ByteProcessor
FIND_ASCII_SPACE, FIND_COMMA, 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
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDecoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ByteBufdecode(ByteBuf src, int off, int len, ByteBufAllocator allocator, Base64Dialect dialect)private static intdecode4to3(byte[] src, ByteBuf dest, int destOffset, byte[] decodabet)booleanprocess(byte value)
-
-
-
Field Detail
-
b4
private final byte[] b4
-
b4Posn
private int b4Posn
-
decodabet
private byte[] decodabet
-
outBuffPosn
private int outBuffPosn
-
dest
private ByteBuf dest
-
-
Method Detail
-
decode
ByteBuf decode(ByteBuf src, int off, int len, ByteBufAllocator allocator, Base64Dialect dialect)
-
process
public boolean process(byte value) throws java.lang.Exception- Specified by:
processin interfaceByteProcessor- Returns:
trueif the processor wants to continue the loop and handle the next byte in the buffer.falseif the processor wants to stop handling bytes and abort the loop.- Throws:
java.lang.Exception
-
decode4to3
private static int decode4to3(byte[] src, ByteBuf dest, int destOffset, byte[] decodabet)
-
-