public final class FilterFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<COSName,Filter> |
filters |
static FilterFactory |
INSTANCE
Singleton instance.
|
Modifier | Constructor and Description |
---|---|
private |
FilterFactory() |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Collection<Filter> |
getAllFilters() |
Filter |
getFilter(COSName filterName)
Returns a filter instance given its COSName.
|
Filter |
getFilter(java.lang.String filterName)
Returns a filter instance given its name as a string.
|
public static final FilterFactory INSTANCE
public Filter getFilter(java.lang.String filterName) throws java.io.IOException
filterName
- the name of the filter to retrievejava.io.IOException
- if the filter name was invalidpublic Filter getFilter(COSName filterName) throws java.io.IOException
filterName
- the name of the filter to retrievejava.io.IOException
- if the filter name was invalidjava.util.Collection<Filter> getAllFilters()