org.apache.commons.io.input
Class ProxyReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.commons.io.input.ProxyReader
- public abstract class ProxyReader
- extends java.io.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).
Field Summary |
private java.io.Reader |
proxy
|
Fields inherited from class java.io.FilterReader |
in |
Fields inherited from class java.io.Reader |
lock |
Constructor Summary |
ProxyReader(java.io.Reader proxy)
Constructs a new ProxyReader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proxy
private java.io.Reader proxy
ProxyReader
public ProxyReader(java.io.Reader proxy)
- Constructs a new ProxyReader.
- Parameters:
proxy
- Reader to delegate to
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Reader.read()
read
public int read(char[] chr)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Reader.read(char[])
read
public int read(char[] chr,
int st,
int end)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Reader.read(char[], int, int)
skip
public long skip(long ln)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Reader.skip(long)
ready
public boolean ready()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Reader.ready()
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Reader.close()
mark
public void mark(int idx)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Reader.mark(int)
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Reader.reset()
markSupported
public boolean markSupported()
- See Also:
Reader.markSupported()