public abstract class AbstractFilteredResource extends Object implements Resource
Resource whose contents may be run through a filter as it is being read.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFilteredResource()
Constructor.
|
protected |
AbstractFilteredResource(ResourceFilter filter)
Deprecated.
use
setResourceFilter(ResourceFilter) instead |
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
applyFilter(InputStream stream)
Applies the filter to the given stream resulting in the returned stream.
|
ResourceFilter |
getResourceFilter()
Gets the resource filter associated with this resource.
|
void |
setResourceFilter(ResourceFilter filter)
Sets the resource filter associated with this resource.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, getInputStream, getLastModifiedTime, getLocationprotected AbstractFilteredResource()
protected AbstractFilteredResource(ResourceFilter filter)
setResourceFilter(ResourceFilter) insteadfilter - the filter used on the resourcepublic ResourceFilter getResourceFilter()
public void setResourceFilter(ResourceFilter filter)
filter - filter associated with this resourceprotected InputStream applyFilter(InputStream stream) throws ResourceException
stream - the stream to filterResourceException - thrown if the filter can not be applied to the streamCopyright © 1999-2014. All Rights Reserved.