edu.rice.cs.cunit.util
Interface ProvidesInputStreamPosition

All Known Implementing Classes:
PositionDataInputStream, PositionInputStream

public interface ProvidesInputStreamPosition

Can provide the position of an input stream.


Method Summary
 long getPosition()
          Get the stream position.
 

Method Detail

getPosition

long getPosition()

Get the stream position.

Eventually, the position will roll over to a negative number. Reading 1 Tb per second, this would occur after approximately three months. Applications should account for this possibility in their design.

Returns:
the current stream position.