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.Constructor and Description |
---|
PropertyReplacementResourceFilter(File propertyFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
applyFilter(InputStream resource)
Applies this filter to the given stream.
|
public PropertyReplacementResourceFilter(File propertyFile)
propertyFile
- property file whose properties will be expanded within the resourcepublic InputStream applyFilter(InputStream resource) throws ResourceException
applyFilter
in interface ResourceFilter
resource
- Resource to which the filter should apply.ResourceException
- thrown is there if a problem applying the filterCopyright © 2015. All rights reserved.