org.apache.commons.io.input
Class ProxyInputStream
java.lang.Object
   java.io.InputStream
java.io.InputStream
       java.io.FilterInputStream
java.io.FilterInputStream
           org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.ProxyInputStream
- All Implemented Interfaces: 
- Closeable
- Direct Known Subclasses: 
- CountingInputStream, SwappedDataInputStream
- 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).
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ProxyInputStream
public ProxyInputStream(InputStream proxy)
- Constructs a new ProxyInputStream.
 
- Parameters:
- proxy- InputStream to delegate to
 
read
public int read()
         throws IOException
- 
- Overrides:
- readin class- FilterInputStream
 
- 
- Throws:
- IOException
- See Also:
- InputStream.read()
 
read
public int read(byte[] bts)
         throws IOException
- 
- Overrides:
- readin class- FilterInputStream
 
- 
- Throws:
- IOException
- See Also:
- InputStream.read(byte[])
 
read
public int read(byte[] bts,
                int st,
                int end)
         throws IOException
- 
- Overrides:
- readin class- FilterInputStream
 
- 
- Throws:
- IOException
- See Also:
- InputStream.read(byte[], int, int)
 
skip
public long skip(long ln)
          throws IOException
- 
- Overrides:
- skipin class- FilterInputStream
 
- 
- Throws:
- IOException
- See Also:
- InputStream.skip(long)
 
available
public int available()
              throws IOException
- 
- Overrides:
- availablein class- FilterInputStream
 
- 
- Throws:
- IOException
- See Also:
- InputStream.available()
 
close
public void close()
           throws IOException
- 
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- FilterInputStream
 
- 
- Throws:
- IOException
- See Also:
- InputStream.close()
 
mark
public void mark(int idx)
- 
- Overrides:
- markin class- FilterInputStream
 
- 
- See Also:
- InputStream.mark(int)
 
reset
public void reset()
           throws IOException
- 
- Overrides:
- resetin class- FilterInputStream
 
- 
- Throws:
- IOException
- See Also:
- InputStream.reset()
 
markSupported
public boolean markSupported()
- 
- Overrides:
- markSupportedin class- FilterInputStream
 
- 
- See Also:
- InputStream.markSupported()
 
Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.