Class CountingStream

java.lang.Object
java.io.InputStream
org.mozilla.jss.asn1.CountingStream
All Implemented Interfaces:
Closeable, AutoCloseable

class CountingStream extends InputStream
This class keeps track of the number of bytes that have been read from a stream. It will be incremented by the number of bytes read or skipped. If the stream is marked and then reset, the number of bytes read will be reset as well.