public class PropertyReplacementResourceFilter extends Object implements ResourceFilter
InputStream should be a character stream as InputStreamReader will be used to convert the stream
into a string.| Modifier and Type | Field and Description |
|---|---|
private File |
propertyFilePath
Location of the property file.
|
| Constructor and Description |
|---|
PropertyReplacementResourceFilter(File propertyFile)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
applyFilter(InputStream resource)
Applies this filter to the given stream.
|
private File propertyFilePath
public PropertyReplacementResourceFilter(File propertyFile)
propertyFile - property file whose properties will be expanded within the resourcepublic InputStream applyFilter(InputStream resource) throws ResourceException
applyFilter in interface ResourceFilterresource - Resource to which the filter should apply.ResourceException - thrown is there if a problem applying the filterCopyright © 1999-2016. All Rights Reserved.