org.apache.commons.io.input
Class ProxyReader
FilterReaderorg.apache.commons.io.input.ProxyReader
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).
ProxyReader(Reader proxy)- Constructs a new ProxyReader.
|
proxy
private Reader proxy
ProxyReader
public ProxyReader(Reader proxy)
Constructs a new ProxyReader.
proxy - Reader to delegate to
close
public void close()
throws IOException
mark
public void mark(int idx)
throws IOException
markSupported
public boolean markSupported()
java.io.Reader.markSupported()
read
public int read()
throws IOException
read
public int read(char[] chr)
throws IOExceptionjava.io.Reader.read(char[])
read
public int read(char[] chr,
int st,
int end)
throws IOExceptionjava.io.Reader.read(char[], int, int)
ready
public boolean ready()
throws IOException
reset
public void reset()
throws IOException
skip
public long skip(long ln)
throws IOExceptionjava.io.Reader.skip(long)