public abstract long position () throws IOException

Returns this channel's position.

Returns:  This channel's position, a non-negative integer counting the number of bytes from the beginning of the entity to the current position

Exceptions:
ClosedChannelException     If this channel is closed
IOException     If some other I/O error occurs