Java内容重新整理删除过期的东西

This commit is contained in:
estom
2025-09-14 03:49:42 -04:00
parent 9b8524ff80
commit 885b795e45
413 changed files with 643 additions and 1340 deletions

View File

@@ -0,0 +1,20 @@
package cn.aofeng.demo.reactor;
import java.nio.ByteBuffer;
/**
* 请求数据解析器接口定义。
*
* @author <a href="mailto:aofengblog@163.com">NieYong </a>
*/
public interface Decoder {
/**
* 解析请求数据,不影响源数据的状态和内容。
*
* @param source {@link Reader}读取到的源数据字节数组
* @return 如果解析到符合要求的数据则返回解析到的数据否则返回null。
*/
public Object decode(ByteBuffer source);
}