public abstract class ProxyReader
extends java.io.FilterReader
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).
| Constructor and Description |
|---|
ProxyReader(java.io.Reader proxy)
Constructs a new ProxyReader.
|
public ProxyReader(java.io.Reader proxy)
proxy - the Reader to delegate topublic int read()
throws java.io.IOException
read in class java.io.FilterReaderjava.io.IOExceptionReader.read()public int read(char[] chr)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionReader.read(char[])public int read(char[] chr,
int st,
int end)
throws java.io.IOException
read in class java.io.FilterReaderjava.io.IOExceptionReader.read(char[], int, int)public long skip(long ln)
throws java.io.IOException
skip in class java.io.FilterReaderjava.io.IOExceptionReader.skip(long)public boolean ready()
throws java.io.IOException
ready in class java.io.FilterReaderjava.io.IOExceptionReader.ready()public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterReaderjava.io.IOExceptionReader.close()public void mark(int idx)
throws java.io.IOException
mark in class java.io.FilterReaderjava.io.IOExceptionReader.mark(int)public void reset()
throws java.io.IOException
reset in class java.io.FilterReaderjava.io.IOExceptionReader.reset()public boolean markSupported()
markSupported in class java.io.FilterReaderReader.markSupported()