2017年6月4日
摘要: package com.atguigu.nio; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import j... 阅读全文
posted @ 2017-06-04 22:53 编世界 阅读(116) 评论(0) 推荐(0) 编辑
摘要: package com.atguigu.nio; import java.io.IOException;import java.nio.ByteBuffer;import java.nio.channels.FileChannel;import java.nio.channels.SeekableB 阅读全文
posted @ 2017-06-04 22:52 编世界 阅读(138) 评论(0) 推荐(0) 编辑
摘要: package com.atguigu.nio; import java.nio.ByteBuffer; import org.junit.Test; /* * 一、缓冲区(Buffer):在 Java NIO 中负责数据的存取。缓冲区就是数组。用于存储不同数据类型的数据 * * 根据数据类型不同(boolean 除外),提供了相应类型的缓冲区: * ByteBuffer * ... 阅读全文
posted @ 2017-06-04 22:51 编世界 阅读(128) 评论(0) 推荐(0) 编辑