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 Object implements ByteProcessor
  • Field Details

    • b4

      private final byte[] b4
    • b4Posn

      private int b4Posn
    • decodabet

      private byte[] decodabet
    • outBuffPosn

      private int outBuffPosn
    • dest

      private ByteBuf dest
  • Constructor Details

    • Decoder

      private Decoder()
  • Method Details

    • decode

      ByteBuf decode(ByteBuf src, int off, int len, ByteBufAllocator allocator, Base64Dialect dialect)
    • process

      public boolean process(byte value) throws Exception
      Specified by:
      process in interface ByteProcessor
      Returns:
      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.
      Throws:
      Exception
    • decode4to3

      private static int decode4to3(byte[] src, ByteBuf dest, int destOffset, byte[] decodabet)