public class InputStreamDecorator extends InputStream
InputStream
. Alternative to FilterInputStream
that calls the same methods on the decoratee that were actually called.Constructor and Description |
---|
InputStreamDecorator(InputStream in)
Creates a decorator for the given input stream
|
public InputStreamDecorator(InputStream in)
in
- the input stream to decoratepublic int available() throws IOException
available
in class InputStream
IOException
InputStream.available()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
InputStream.close()
public void mark(int readLimit)
mark
in class InputStream
InputStream.mark(int)
public boolean markSupported()
markSupported
in class InputStream
InputStream.markSupported()
public int read() throws IOException
read
in class InputStream
IOException
InputStream.read()
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[], int, int)
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[])
public void reset() throws IOException
reset
in class InputStream
IOException
InputStream.reset()
public long skip(long n) throws IOException
skip
in class InputStream
IOException
InputStream.skip(long)
public String toString()
toString
in class Object
Object.toString()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a