public class LengthLimitedInputStream
extends java.io.InputStream
An InputStream decorator that returns EOF after
a specified number of bytes have been read from the underlying
stream. If EOF is encountered on the underlying stream before the
read limit is hit, EOF is returned at that point.