ByteBuffer类中的get方法为抽象的,为什么下面的程序可以直接使用?public class GetChannel { private static final int BSIZE=1024;public static void main(String[]args)throws Exception { Write a file: ...
看看ByteBuffer类。ByteBuffer b=ByteBuffer.allocate(4);b.order(ByteOrder.BIG_ENDIAN);optional,the initial order of a byte buffer is always BIG_ENDIAN.b.putInt(0xAABBCCDD);byte[]result=b.array();设置...