org.apache.mina.filter.codec.support
Class SimpleProtocolDecoderOutput

java.lang.Object
  extended by org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput
All Implemented Interfaces:
ProtocolDecoderOutput

public class SimpleProtocolDecoderOutput
extends java.lang.Object
implements ProtocolDecoderOutput

A ProtocolDecoderOutput based on queue.


Constructor Summary
SimpleProtocolDecoderOutput(IoSession session, IoFilter.NextFilter nextFilter)
           
 
Method Summary
 void flush()
          Flushes all messages you wrote via ProtocolDecoderOutput.write(Object) to the next filter.
 void write(java.lang.Object message)
          Callback for ProtocolDecoder to generate decoded messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleProtocolDecoderOutput

public SimpleProtocolDecoderOutput(IoSession session,
                                   IoFilter.NextFilter nextFilter)
Method Detail

write

public void write(java.lang.Object message)
Description copied from interface: ProtocolDecoderOutput
Callback for ProtocolDecoder to generate decoded messages. ProtocolDecoder must call ProtocolDecoderOutput.write(Object) for each decoded messages.

Specified by:
write in interface ProtocolDecoderOutput
Parameters:
message - the decoded message

flush

public void flush()
Description copied from interface: ProtocolDecoderOutput
Flushes all messages you wrote via ProtocolDecoderOutput.write(Object) to the next filter.

Specified by:
flush in interface ProtocolDecoderOutput