/**
* 获取IoBuffer len长度数据
* @param buf
* @param len 长度
* @return byte[]
*/
public static byte[] IoBuffertoBytes(IoBuffer buf,int len){
byte[] b = new byte[len];
buf.get(b);
return b;
}
//byte[]转String
new String(byte[])
最后
以上就是背后银耳汤最近收集整理的关于mina 使用IoBuffer获取byte[]的全部内容,更多相关mina内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复