net.gleamynode.netty.handler.codec.serialization
Class CompatibleObjectDecoder

java.lang.Object
  extended by net.gleamynode.netty.channel.SimpleChannelHandler
      extended by net.gleamynode.netty.handler.codec.replay.ReplayingDecoder<net.gleamynode.netty.handler.codec.serialization.CompatibleObjectDecoderState>
          extended by net.gleamynode.netty.handler.codec.serialization.CompatibleObjectDecoder
All Implemented Interfaces:
ChannelHandler, ChannelUpstreamHandler

public class CompatibleObjectDecoder
extends ReplayingDecoder<net.gleamynode.netty.handler.codec.serialization.CompatibleObjectDecoderState>

Version:
$Rev$, $Date$
Author:
The Netty Project (netty@googlegroups.com), Trustin Lee (trustin@gmail.com)

Constructor Summary
CompatibleObjectDecoder()
           
 
Method Summary
protected  Object decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, net.gleamynode.netty.handler.codec.serialization.CompatibleObjectDecoderState state)
           
protected  Object decodeLast(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, net.gleamynode.netty.handler.codec.serialization.CompatibleObjectDecoderState state)
           
protected  ObjectInputStream newObjectInputStream(InputStream in)
           
 
Methods inherited from class net.gleamynode.netty.handler.codec.replay.ReplayingDecoder
channelClosed, channelDisconnected, checkpoint, checkpoint, exceptionCaught, messageReceived
 
Methods inherited from class net.gleamynode.netty.channel.SimpleChannelHandler
channelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompatibleObjectDecoder

public CompatibleObjectDecoder()
Method Detail

decode

protected Object decode(ChannelHandlerContext ctx,
                        Channel channel,
                        ChannelBuffer buffer,
                        net.gleamynode.netty.handler.codec.serialization.CompatibleObjectDecoderState state)
                 throws Exception
Specified by:
decode in class ReplayingDecoder<net.gleamynode.netty.handler.codec.serialization.CompatibleObjectDecoderState>
Throws:
Exception

newObjectInputStream

protected ObjectInputStream newObjectInputStream(InputStream in)
                                          throws Exception
Throws:
Exception

decodeLast

protected Object decodeLast(ChannelHandlerContext ctx,
                            Channel channel,
                            ChannelBuffer buffer,
                            net.gleamynode.netty.handler.codec.serialization.CompatibleObjectDecoderState state)
                     throws Exception
Overrides:
decodeLast in class ReplayingDecoder<net.gleamynode.netty.handler.codec.serialization.CompatibleObjectDecoderState>
Throws:
Exception


Copyright © 2008-Present Trustin Heuiseung Lee. All Rights Reserved.