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 ReadableByteChannel
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
Copyright © 2016. All rights reserved.