@Test public void positionOfNewChannel_shouldReturnZero() throws IOException { try(SeekableByteChannel channel = new GfsSeekableByteChannel(file, singleton(READ))) { assertEquals(0, channel.position()); } }
@Override public long position() throws ClosedChannelException { checkClosed(); return buffer.position(); }
GfsSeekableByteChannel implements SeekableByteChannel { @Override public long position() throws ClosedChannelException { checkClosed(); return buffer.position(); } }
GfsSeekableByteChannel implements SeekableByteChannel { @Override public long position() throws ClosedChannelException { checkClosed(); return buffer.position(); } GfsSeekableByteChannel(FileNode file, Collection<? extends OpenOption> options); }
GfsSeekableByteChannel implements SeekableByteChannel { @Override public long position() throws ClosedChannelException { checkClosed(); return buffer.position(); } GfsSeekableByteChannel(FileNode file, Collection<? extends OpenOption> options); @Override int read(ByteBuffer dst); @Override int write(ByteBuffer src); @Override long position(); @Override GfsSeekableByteChannel position(long newPosition); @Override long size(); @Override GfsSeekableByteChannel truncate(long size); @Override boolean isOpen(); @Nonnull byte[] getBytes(); @Override void close(); }
GfsSeekableByteChannel implements SeekableByteChannel { @Override public long position() throws ClosedChannelException { checkClosed(); return buffer.position(); } GfsSeekableByteChannel(FileNode file, Collection<? extends OpenOption> options); @Override int read(ByteBuffer dst); @Override int write(ByteBuffer src); @Override long position(); @Override GfsSeekableByteChannel position(long newPosition); @Override long size(); @Override GfsSeekableByteChannel truncate(long size); @Override boolean isOpen(); @Nonnull byte[] getBytes(); @Override void close();  }