org.sblim.cimclient.internal.http.io

Class BoundedInputStream

public class BoundedInputStream extends FilterInputStream

Class BoundedInputStream implements an input stream with a maximum byte count.
Constructor Summary
BoundedInputStream(InputStream pStream)
Ctor.
BoundedInputStream(InputStream pStream, long pMaximumLength)
Ctor.

Constructor Detail

BoundedInputStream

public BoundedInputStream(InputStream pStream)
Ctor. Creates the stream with unlimited length.

Parameters: pStream The stream this one is build upon

BoundedInputStream

public BoundedInputStream(InputStream pStream, long pMaximumLength)
Ctor.

Parameters: pStream The stream this one is build upon pMaximumLength The maximum number of bytes that can be read from this stream. A value of -1 represents unlimited mode.

Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.