Constructs a limited stream from an existing input stream.
the input stream to be wrapped
the maximum number of bytes readable from the constructed stream
if set, the stream will behave exactly like the original stream, but will throw an exception as soon as the limit is reached.
See Implementation
Constructs a limited stream from an existing input stream.