org.apache.commons.io.input
Class ProxyInputStream
FilterInputStreamorg.apache.commons.io.input.ProxyInputStream
public abstract class ProxyInputStream
extends FilterInputStream
A Proxy stream which acts as expected, that is it passes the method
calls on to the proxied stream and doesn't change which methods are
being called.
It is an alternative base class to FilterInputStream
to increase reusability, because FilterInputStream changes the
methods being called, such as read(byte[]) to read(byte[], int, int).
proxy
private InputStream proxy
ProxyInputStream
public ProxyInputStream(InputStream proxy)
Constructs a new ProxyInputStream.
proxy - InputStream to delegate to
available
public int available()
throws IOExceptionjava.io.InputStream.available()
close
public void close()
throws IOExceptionjava.io.InputStream.close()
mark
public void mark(int idx)
java.io.InputStream.mark(int)
markSupported
public boolean markSupported()
java.io.InputStream.markSupported()
read
public int read()
throws IOExceptionjava.io.InputStream.read()
read
public int read(byte[] bts)
throws IOExceptionjava.io.InputStream.read(byte[])
read
public int read(byte[] bts,
int st,
int end)
throws IOExceptionjava.io.InputStream.read(byte[], int, int)
reset
public void reset()
throws IOExceptionjava.io.InputStream.reset()
skip
public long skip(long ln)
throws IOExceptionjava.io.InputStream.skip(long)