org.sblim.cimclient.internal.http.io
public class BoundedInputStream extends FilterInputStream
in
Constructor and Description |
---|
BoundedInputStream(InputStream pStream)
Ctor.
|
BoundedInputStream(InputStream pStream,
long pMaximumLength)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int off,
int len) |
long |
skip(long len) |
mark, markSupported, reset
public BoundedInputStream(InputStream pStream)
pStream
- The stream this one is build uponpublic BoundedInputStream(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 IOException
read
in class FilterInputStream
IOException
public int read(byte[] buf) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long len) throws IOException
skip
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class FilterInputStream
IOException
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.