public interface SeekableReadableByteChannel extends ReadableByteChannel
Modifier and Type | Method and Description |
---|---|
long |
position()
Returns this channel's position.
|
SeekableReadableByteChannel |
position(long newPosition)
Sets this channel's position.
|
long |
size()
Returns the current size of entity to which this channel is connected.
|
read
long position() throws IOException
IOException
SeekableReadableByteChannel position(long newPosition) throws IOException
newPosition
- The new position, counting the number of bytes from the beginning of the
entity.IOException
long size() throws IOException
IOException
Copyright © 2015. All rights reserved.