接口 ProtocolDecoderOutput
/*
*/
package org.apache.mina.filter.codec;
import org.apache.mina.core.filterchain.IoFilter.NextFilter;
import org.apache.mina.core.session.IoSession;
/**
* Callback for {@link ProtocolDecoder} to generate decoded messages.
* 协议解码器ProtocolDecoder的回调接口来产生解码后的消息对象
* {@link ProtocolDecoder} must call {@link #write(Object)} for each decoded
* messages.
* 协议解码器ProtocolDecoder必须为每一个解码后的消息对象调用此接口的write(Object)方法
* 将消息输出
*/
public interface ProtocolDecoderOutput {
/**
* Callback for {@link ProtocolDecoder} to generate decoded messages.
* {@link ProtocolDecoder} must call {@link #write(Object)} for each
* decoded messages.
*
* @param message the decoded message
*/
void write(Object message);
/**
* Flushes all messages you wrote via {@link #write(Object)} to
* the next filter.