org.riotfamily.common.io
Class PropertyFilterReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.riotfamily.common.io.AbstractTokenFilterReader
org.riotfamily.common.io.PropertyFilterReader
- All Implemented Interfaces:
- Closeable, Readable
public class PropertyFilterReader
- extends AbstractTokenFilterReader
FilterReader that replaces tokens with values form a Properties instance.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyFilterReader
public PropertyFilterReader(Reader in)
PropertyFilterReader
public PropertyFilterReader(Reader in,
Map<String,String> properties)
setProperties
public void setProperties(Properties properties)
getReplacement
public String getReplacement(String key)
- Specified by:
getReplacement
in class AbstractTokenFilterReader