org.red5.server.net.protocol
Interface SimpleProtocolEncoder

All Known Implementing Classes:
BaseProtocolEncoder, RemotingProtocolEncoder, RTMPMinaProtocolEncoder, RTMPProtocolEncoder, RTMPTProtocolEncoder

public interface SimpleProtocolEncoder

Every protocol encoder should implement this


Method Summary
 org.apache.mina.common.ByteBuffer encode(ProtocolState state, Object out)
          Encodes object with given protocol state to byte buffer
 

Method Detail

encode

org.apache.mina.common.ByteBuffer encode(ProtocolState state,
                                         Object out)
                                         throws Exception
Encodes object with given protocol state to byte buffer

Parameters:
state - Protocol state
out - Object to encode
Returns:
Byte buffer with encoded data
Throws:
Exception - Any decoding exception


Copyright © 2006-2007 the Red5 project.