org.apache.commons.io.input

Class 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).

Version: $Id: ProxyInputStream.java 471628 2006-11-06 04:06:45Z bayard $

Author: Stephen Colebourne

Constructor Summary
ProxyInputStream(InputStream proxy)
Constructs a new ProxyInputStream.
Method Summary
intavailable()
voidclose()
voidmark(int idx)
booleanmarkSupported()
intread()
intread(byte[] bts)
intread(byte[] bts, int st, int end)
voidreset()
longskip(long ln)

Constructor Detail

ProxyInputStream

public ProxyInputStream(InputStream proxy)
Constructs a new ProxyInputStream.

Parameters: proxy the InputStream to delegate to

Method Detail

available

public int available()

See Also: java.io.InputStream#available()

close

public void close()

See Also: java.io.InputStream#close()

mark

public void mark(int idx)

See Also: java.io.InputStream#mark(int)

markSupported

public boolean markSupported()

See Also: java.io.InputStream#markSupported()

read

public int read()

See Also: java.io.InputStream#read()

read

public int read(byte[] bts)

See Also: java.io.InputStream#read(byte[])

read

public int read(byte[] bts, int st, int end)

See Also: java.io.InputStream#read(byte[], int, int)

reset

public void reset()

See Also: java.io.InputStream#reset()

skip

public long skip(long ln)

See Also: java.io.InputStream#skip(long)