SeekableByteChannel
An interface for channels that keep a pointer to a current position within an underlying byte-based data source such as a file.
SeekableByteChannels have a pointer into the underlying data source which is referred to as a position. The position can be manipulated by moving it within the data source, and the current position can be queried.
SeekableByteChannels also have an associated size. The size of the channel is the number of bytes that the data source currently contains. The size of the data source can be manipulated by adding more bytes to the end or by removing bytes from the end. See truncate, position and write for details. The current size can also be queried.
Since
1.7