62,614
社区成员
发帖
与我相关
我的任务
分享
private FileChannel channel = null;
public FileChannel getChannel() {
synchronized (this) {
if (channel == null)
channel = FileChannelImpl.open(fd, true, false, this);
return channel;
}
}
public void close() throws IOException {
if (channel != null)
channel.close();
close0();
}