org.lastbamboo.common.tcp.frame
Class TcpFrameCodecFactory
java.lang.Object
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.
TcpFrameCodecFactory
public TcpFrameCodecFactory()
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.