public final class FileOperator extends Object
| Constructor and Description |
|---|
FileOperator(FileChannel fileChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
read(long pos,
Buffer sink,
long byteCount)
|
void |
write(long pos,
Buffer source,
long byteCount)
将
byteCount字节从source写到pos的文件中 |
public FileOperator(FileChannel fileChannel)
public void write(long pos,
Buffer source,
long byteCount)
throws IOException
byteCount字节从source写到pos的文件中pos - 写入大小source - 缓存流信息byteCount - 字节流大小IOException - 异常public void read(long pos,
Buffer sink,
long byteCount)
throws IOException
pos - 写入大小sink - 缓存流信息byteCount - 字节流大小IOException - 异常Copyright © 2020. All rights reserved.