org.lastbamboo.common.tcp.frame
Class TcpFrameCodecFactory

java.lang.Object
  extended by org.lastbamboo.common.tcp.frame.TcpFrameCodecFactory
All Implemented Interfaces:
org.littleshoot.util.mina.DemuxableProtocolCodecFactory<TcpFrame>

public class TcpFrameCodecFactory
extends Object
implements org.littleshoot.util.mina.DemuxableProtocolCodecFactory<TcpFrame>

DemuxableProtocolCodecFactory for framed TCP data as defined in RFC 4571.


Constructor Summary
TcpFrameCodecFactory()
           
 
Method Summary
 boolean canDecode(org.littleshoot.mina.common.ByteBuffer in)
           
 boolean enoughData(org.littleshoot.mina.common.ByteBuffer in)
           
 Class<TcpFrame> getClassToEncode()
           
 org.littleshoot.util.mina.DemuxableProtocolDecoder newDecoder()
           
 org.littleshoot.mina.filter.codec.ProtocolEncoder newEncoder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcpFrameCodecFactory

public TcpFrameCodecFactory()
Method Detail

canDecode

public boolean canDecode(org.littleshoot.mina.common.ByteBuffer in)
Specified by:
canDecode in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<TcpFrame>

enoughData

public boolean enoughData(org.littleshoot.mina.common.ByteBuffer in)
Specified by:
enoughData in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<TcpFrame>

getClassToEncode

public Class<TcpFrame> getClassToEncode()
Specified by:
getClassToEncode in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<TcpFrame>

newDecoder

public org.littleshoot.util.mina.DemuxableProtocolDecoder newDecoder()
Specified by:
newDecoder in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<TcpFrame>

newEncoder

public org.littleshoot.mina.filter.codec.ProtocolEncoder newEncoder()
Specified by:
newEncoder in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<TcpFrame>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 LittleShoot. All Rights Reserved.