@ChannelHandler.Sharable
public class Base64Encoder
extends io.netty.channel.ChannelOutboundMessageHandlerAdapter<io.netty.buffer.ByteBuf>
ByteBuf into a Base64-encoded ByteBuf.
A typical setup for TCP/IP would be:
ChannelPipelinepipeline = ...; // Decoders pipeline.addLast("frameDecoder", newDelimiterBasedFrameDecoder(80,Delimiters.nulDelimiter())); pipeline.addLast("base64Decoder", newBase64Decoder()); // Encoder pipeline.addLast("base64Encoder", newBase64Encoder());
| Constructor and Description |
|---|
Base64Encoder() |
Base64Encoder(boolean breakLines) |
Base64Encoder(boolean breakLines,
Base64Dialect dialect) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg) |
acceptOutboundMessage, beginFlush, endFlush, flush, freeOutboundBuffer, isCloseOnFailedFlush, newOutboundBuffer, setCloseOnFailedFlushbind, close, connect, deregister, disconnect, read, sendFileafterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaughtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Base64Encoder()
public Base64Encoder(boolean breakLines)
public Base64Encoder(boolean breakLines,
Base64Dialect dialect)
Copyright © 2008-2013 The Netty Project. All Rights Reserved.