org.apache.commons.io.input

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

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

Author: Stephen Colebourne

Constructor Summary
ProxyReader(Reader proxy)
Constructs a new ProxyReader.
Method Summary
voidclose()
voidmark(int idx)
booleanmarkSupported()
intread()
intread(char[] chr)
intread(char[] chr, int st, int end)
booleanready()
voidreset()
longskip(long ln)

Constructor Detail

ProxyReader

public ProxyReader(Reader proxy)
Constructs a new ProxyReader.

Parameters: proxy the Reader to delegate to

Method Detail

close

public void close()

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

mark

public void mark(int idx)

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

markSupported

public boolean markSupported()

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

read

public int read()

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

read

public int read(char[] chr)

See Also: java.io.Reader#read(char[])

read

public int read(char[] chr, int st, int end)

See Also: java.io.Reader#read(char[], int, int)

ready

public boolean ready()

See Also: java.io.Reader#ready()

reset

public void reset()

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

skip

public long skip(long ln)

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