我有两个问题
如果我的操作系统不支持AIO(低于linux 2.6等),AsynchronousFileChannel将如何工作。
如何将sth追加到AsynchronousFileChannel中,据我所知,AsynchronousFileChannel只支持write(ByteBuffer,long position,A attachment,CompletionHandler handler)和write(ByteBuffer src,long position)都需要一个位置参数。我应该自己算一下这个职位吗?
答案 0 :(得分:1)