摘要: java的nio包的简单使用
public class GetChannel {private static final int BSIZE = 1024;public static void main(String args) throws IOException { FileChannel fc = new FileOutputStream(./s ...
java的nio包的简单使用
public class GetChannel {
private static final int BSIZE = 1024;
public static void main(String[] args) throws IOException {
FileChannel fc = new FileOutputStream("./src/test/java/chapter18/work23/data.txt").getChannel();