Class Base64
java.lang.Object
io.netty.handler.codec.base64.Base64
Utility class for
ByteBuf 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
Modifier and TypeMethodDescriptionstatic ByteBufstatic ByteBufstatic ByteBufdecode(ByteBuf src, int off, int len, Base64Dialect dialect) static ByteBufdecode(ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator) static ByteBufdecode(ByteBuf src, Base64Dialect dialect) static ByteBufstatic ByteBufstatic ByteBufstatic ByteBufencode(ByteBuf src, boolean breakLines, Base64Dialect dialect) static ByteBufencode(ByteBuf src, boolean breakLines, Base64Dialect dialect, boolean addPadding) static ByteBufstatic ByteBufstatic ByteBufencode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect) static ByteBufencode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, boolean addPadding) static ByteBufencode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, ByteBufAllocator allocator) static ByteBufencode(ByteBuf src, int off, int len, Base64Dialect dialect) static ByteBufencode(ByteBuf src, Base64Dialect dialect) static ByteBufencode(ByteBuf src, Base64Dialect dialect, boolean addPadding)
-
Method Details
-
encode
-
encode
-
encode
-
encode
-
encode
-
encode
-
encode
public static ByteBuf encode(ByteBuf src, boolean breakLines, Base64Dialect dialect, boolean addPadding) -
encode
-
encode
-
encode
-
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, boolean addPadding) -
encode
public static ByteBuf encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, ByteBufAllocator allocator) -
decode
-
decode
-
decode
-
decode
-
decode
public static ByteBuf decode(ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator)
-