| 14 | import java.nio.ByteBuffer; |
| 15 | |
| 16 | public abstract class FileChannel implements Channel { |
| 17 | |
| 18 | public static enum MapMode { |
| 19 | PRIVATE, READ_ONLY, READ_WRITE |
| 20 | }; |
| 21 | |
| 22 | public abstract int read(ByteBuffer dst) throws IOException; |
| 23 | |
| 24 | public abstract int read(ByteBuffer dst, long position) throws IOException; |
| 25 | |
| 26 | public abstract int write(ByteBuffer dst) throws IOException; |
| 27 | |
| 28 | public abstract int write(ByteBuffer dst, long position) throws IOException; |
| 29 | |
| 30 | public abstract long position() throws IOException; |
| 31 | |
| 32 | public abstract FileChannel position(long position) throws IOException; |
| 33 | |
| 34 | public abstract long size() throws IOException; |
| 35 | } |
nothing calls this directly
no outgoing calls
no test coverage detected