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.core.buffer.IoBuffer encode(ProtocolState state, Object out)
          Encodes object with given protocol state to byte buffer
 

Method Detail

encode

org.apache.mina.core.buffer.IoBuffer 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:
IoBuffer with encoded data
Throws:
Exception - Any decoding exception


Copyright © 2006-2009 The Red5 Project