org.littleshoot.util.mina
Interface DemuxableDecoderFactory


public interface DemuxableDecoderFactory

Protocol decoder with additional methods making it capable of being demultiplexed between multiple protocols.


Method Summary
 boolean canDecode(org.littleshoot.mina.common.ByteBuffer in)
          Returns whether or not this factory can create decoders that can understand the specified data.
 DemuxableProtocolDecoder newDecoder()
          Creates a new decoder.
 

Method Detail

newDecoder

DemuxableProtocolDecoder newDecoder()
Creates a new decoder.

Returns:
A new DemuxableProtocolDecoder.

canDecode

boolean canDecode(org.littleshoot.mina.common.ByteBuffer in)
Returns whether or not this factory can create decoders that can understand the specified data.

Parameters:
in - The data to decode.
Returns:
true if this factory can create decoders for the given data, otherwise false.


Copyright © 2013 LittleShoot. All Rights Reserved.