mirror of
https://github.com/Estom/notes.git
synced 2026-02-05 19:43:57 +08:00
Java内容重新整理删除过期的东西
This commit is contained in:
20
Java/JavaDemo/codedemo/reactor/Encoder.java
Normal file
20
Java/JavaDemo/codedemo/reactor/Encoder.java
Normal 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 Encoder {
|
||||
|
||||
/**
|
||||
* 将源数据转换成{@link ByteBuffer}。
|
||||
*
|
||||
* @param source 源数据
|
||||
* @return {@link ByteBuffer}对象。
|
||||
*/
|
||||
public ByteBuffer encode(Object source);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user