I\'d like something like a generic, re-usable getPosition() method that will tell me the number of bytes read from the starting point of the stream. Ideally, I
getPosition()
There is also CountingInputStream in Guava.
CountingInputStream
Apidocs: https://google.github.io/guava/releases/19.0/api/docs/com/google/common/io/CountingInputStream.html
Source: https://github.com/google/guava/blob/master/guava/src/com/google/common/io/CountingInputStream.java