Package io.netty.handler.codec.base64
Class Base64
- java.lang.Object
-
- io.netty.handler.codec.base64.Base64
-
public final class Base64 extends java.lang.Object
Utility class forByteBuf
that encodes and decodes to and from Base64 notation.The encoding and decoding algorithm in this class has been derived from Robert Harder's Public Domain Base64 Encoder/Decoder.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteBuf
decode(ByteBuf src)
static ByteBuf
decode(ByteBuf src, int off, int len)
static ByteBuf
decode(ByteBuf src, int off, int len, Base64Dialect dialect)
static ByteBuf
decode(ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator)
static ByteBuf
decode(ByteBuf src, Base64Dialect dialect)
static ByteBuf
encode(ByteBuf src)
static ByteBuf
encode(ByteBuf src, boolean breakLines)
static ByteBuf
encode(ByteBuf src, boolean breakLines, Base64Dialect dialect)
static ByteBuf
encode(ByteBuf src, int off, int len)
static ByteBuf
encode(ByteBuf src, int off, int len, boolean breakLines)
static ByteBuf
encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect)
static ByteBuf
encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, ByteBufAllocator allocator)
static ByteBuf
encode(ByteBuf src, int off, int len, Base64Dialect dialect)
static ByteBuf
encode(ByteBuf src, Base64Dialect dialect)
-
-
-
Method Detail
-
encode
public static ByteBuf encode(ByteBuf src, Base64Dialect dialect)
-
encode
public static ByteBuf encode(ByteBuf src, boolean breakLines, Base64Dialect dialect)
-
encode
public static ByteBuf encode(ByteBuf src, int off, int len, Base64Dialect dialect)
-
encode
public static ByteBuf encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect)
-
encode
public static ByteBuf encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, ByteBufAllocator allocator)
-
decode
public static ByteBuf decode(ByteBuf src, Base64Dialect dialect)
-
decode
public static ByteBuf decode(ByteBuf src, int off, int len, Base64Dialect dialect)
-
decode
public static ByteBuf decode(ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator)
-
-