java ByteBuffer flip()和limit()的理解
摘要:先列点代码片段:// ...//// 此段代码功能为从 t.txt 里复制所有数据到 out_j.txt://...1 FileChannel fcin = new FileInputStream( "d:/t.txt" ).getChannel();2 FileChannel fcout = new FileOutputStream( new File( "d:/out_j.txt" )).getChannel();3 ByteBuffer buff = ByteBuffer.allocate( 1024 );4 long t1 = System.cu
阅读全文
posted @ 2013-06-10 22:33