Class Base64Decoder
java.lang.Object
org.jboss.netty.handler.codec.oneone.OneToOneDecoder
org.jboss.netty.handler.codec.base64.Base64Decoder
- All Implemented Interfaces:
ChannelHandler,ChannelUpstreamHandler
Decodes a Base64-encoded
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());
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectdecode(ChannelHandlerContext ctx, Channel channel, Object msg) Transforms the specified received message into another message and return the transformed message.Methods inherited from class org.jboss.netty.handler.codec.oneone.OneToOneDecoder
handleUpstream
-
Field Details
-
dialect
-
-
Constructor Details
-
Base64Decoder
public Base64Decoder() -
Base64Decoder
-
-
Method Details
-
decode
Description copied from class:OneToOneDecoderTransforms the specified received message into another message and return the transformed message. Returnnullif the received message is supposed to be discarded.- Specified by:
decodein classOneToOneDecoder- Throws:
Exception
-