org.apache.commons.io.input
Class ProxyInputStream
FilterInputStream
org.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).
$Id: ProxyInputStream.java 155419 2005-02-26 13:02:41Z dirkv $- Henri Yandell
- Stephen Colebourne
ProxyInputStream
public ProxyInputStream(InputStream proxy)
Constructs a new ProxyInputStream.
proxy
- the InputStream to delegate to
available
public int available()
throws IOException
java.io.InputStream.available()
close
public void close()
throws IOException
java.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 IOException
java.io.InputStream.read()
read
public int read(byte[] bts)
throws IOException
java.io.InputStream.read(byte[])
read
public int read(byte[] bts,
int st,
int end)
throws IOException
java.io.InputStream.read(byte[], int, int)
reset
public void reset()
throws IOException
java.io.InputStream.reset()
skip
public long skip(long ln)
throws IOException
java.io.InputStream.skip(long)