接口 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.通过write(Object)方法将所有消息立即写到下一个过

本文详细探讨了MINA框架中的关键组件ProtocolDecoderOutput,它是协议解码过程中的输出接口,用于收集解码后的数据。文章深入分析了其作用和常见实现,为理解MINA的解码流程提供了重要线索。
最低0.47元/天 解锁文章
2423

被折叠的 条评论
为什么被折叠?



