public class BoundedInputStream
extends java.io.FilterInputStream
Constructor and Description |
---|
BoundedInputStream(java.io.InputStream pStream)
Ctor.
|
BoundedInputStream(java.io.InputStream pStream,
long pMaximumLength)
Ctor.
|
public BoundedInputStream(java.io.InputStream pStream)
pStream
- The stream this one is build uponpublic BoundedInputStream(java.io.InputStream pStream, long pMaximumLength)
pStream
- The stream this one is build uponpMaximumLength
- The maximum number of bytes that can be read from this stream.
A value of -1 represents unlimited mode.public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] buf) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long len) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterInputStream
java.io.IOException
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.