public class NIOFile extends Object implements FileInterface
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static List<String> |
expandPathToList(String path) |
long |
getLimit() |
ByteBuffer |
read(long offset,
long len) |
Future<ByteBuffer> |
readAsync(int offset,
int len) |
ByteBuffer[] |
readv(int[] offsets,
int[] lens) |
Future<ByteBuffer>[] |
readvAsync(int[] offsets,
int[] lens) |
public NIOFile(String path) throws FileNotFoundException
FileNotFoundExceptionpublic ByteBuffer read(long offset, long len) throws IOException
read in interface FileInterfaceIOExceptionpublic ByteBuffer[] readv(int[] offsets, int[] lens) throws IOException
readv in interface FileInterfaceIOExceptionpublic Future<ByteBuffer> readAsync(int offset, int len) throws IOException
readAsync in interface FileInterfaceIOExceptionpublic Future<ByteBuffer>[] readvAsync(int[] offsets, int[] lens) throws IOException
readvAsync in interface FileInterfaceIOExceptionpublic void close()
throws IOException
close in interface FileInterfaceIOExceptionpublic long getLimit()
throws IOException
getLimit in interface FileInterfaceIOExceptionpublic static List<String> expandPathToList(String path) throws IOException
IOExceptionCopyright © 2019. All rights reserved.