org.apache.commons.io.input
Class ProxyReader
java.lang.Object
   java.io.Reader
java.io.Reader
       java.io.FilterReader
java.io.FilterReader
           org.apache.commons.io.input.ProxyReader
org.apache.commons.io.input.ProxyReader
- All Implemented Interfaces: 
- Closeable, Readable
- public abstract class ProxyReader 
- extends FilterReader
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 FilterReader
 to increase reusability, because FilterReader changes the 
 methods being called, such as read(char[]) to read(char[], int, int).
- Version:
- $Id: ProxyReader.java 471628 2006-11-06 04:06:45Z bayard $
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ProxyReader
public ProxyReader(Reader proxy)
- Constructs a new ProxyReader.
 
- Parameters:
- proxy- the Reader to delegate to
 
read
public int read()
         throws IOException
- 
- Overrides:
- readin class- FilterReader
 
- 
- Throws:
- IOException
- See Also:
- Reader.read()
 
read
public int read(char[] chr)
         throws IOException
- 
- Overrides:
- readin class- Reader
 
- 
- Throws:
- IOException
- See Also:
- Reader.read(char[])
 
read
public int read(char[] chr,
                int st,
                int end)
         throws IOException
- 
- Overrides:
- readin class- FilterReader
 
- 
- Throws:
- IOException
- See Also:
- Reader.read(char[], int, int)
 
skip
public long skip(long ln)
          throws IOException
- 
- Overrides:
- skipin class- FilterReader
 
- 
- Throws:
- IOException
- See Also:
- Reader.skip(long)
 
ready
public boolean ready()
              throws IOException
- 
- Overrides:
- readyin class- FilterReader
 
- 
- Throws:
- IOException
- See Also:
- Reader.ready()
 
close
public void close()
           throws IOException
- 
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- FilterReader
 
- 
- Throws:
- IOException
- See Also:
- Reader.close()
 
mark
public void mark(int idx)
          throws IOException
- 
- Overrides:
- markin class- FilterReader
 
- 
- Throws:
- IOException
- See Also:
- Reader.mark(int)
 
reset
public void reset()
           throws IOException
- 
- Overrides:
- resetin class- FilterReader
 
- 
- Throws:
- IOException
- See Also:
- Reader.reset()
 
markSupported
public boolean markSupported()
- 
- Overrides:
- markSupportedin class- FilterReader
 
- 
- See Also:
- Reader.markSupported()
 
Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.