org.riotfamily.common.io
Class AbstractTokenFilterReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.riotfamily.common.io.AbstractTokenFilterReader
- All Implemented Interfaces:
- Closeable, Readable
- Direct Known Subclasses:
- MessageFilterReader, PropertyFilterReader
public abstract class AbstractTokenFilterReader
- extends FilterReader
Abstract base class for FilterReaders that replace ${placehoder}
tokens.
- Author:
- Felix Gnass [fgnass at neteye dot de]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTokenFilterReader
public AbstractTokenFilterReader(Reader in)
read
public int read()
throws IOException
- Overrides:
read
in class FilterReader
- Throws:
IOException
read
public final int read(char[] cbuf,
int off,
int len)
throws IOException
- Overrides:
read
in class FilterReader
- Throws:
IOException
- See Also:
Reader.read(char[], int, int)
getReplacement
protected abstract String getReplacement(String key)