public static final class IO.FileContext extends Object implements ReadableByteChannel
| Constructor and Description |
|---|
FileContext(RandomAccessFile file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RandomAccessFile |
file() |
boolean |
isOpen() |
int |
read(ByteBuffer dst) |
public FileContext(RandomAccessFile file)
public RandomAccessFile file()
public int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2016. All rights reserved.