
@ChannelPipelineCoverage(value="all") public class Base64Decoder extends OneToOneDecoder
ChannelBuffer or US-ASCII String
into a ChannelBuffer. Please note that this decoder must be used
with a proper FrameDecoder such as DelimiterBasedFrameDecoder
if you are using a stream-based transport such as TCP/IP. A typical decoder
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 |
|---|
Base64Decoder() |
Base64Decoder(Base64Dialect dialect) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
decode(ChannelHandlerContext ctx,
Channel channel,
Object msg) |
handleUpstreampublic Base64Decoder()
public Base64Decoder(Base64Dialect dialect)
protected Object decode(ChannelHandlerContext ctx, Channel channel, Object msg) throws Exception
decode in class OneToOneDecoderExceptionCopyright © 2008-2013 JBoss, by Red Hat. All Rights Reserved.