Package com.tom_roush.pdfbox.filter
Class FilterFactory
- java.lang.Object
-
- com.tom_roush.pdfbox.filter.FilterFactory
-
public final class FilterFactory extends Object
Factory for Filter classes.
-
-
Field Summary
Fields Modifier and Type Field Description static FilterFactoryINSTANCESingleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FiltergetFilter(COSName filterName)Returns a filter instance given its COSName.FiltergetFilter(String filterName)Returns a filter instance given its name as a string.
-
-
-
Field Detail
-
INSTANCE
public static final FilterFactory INSTANCE
Singleton instance.
-
-
Method Detail
-
getFilter
public Filter getFilter(String filterName) throws IOException
Returns a filter instance given its name as a string.- Parameters:
filterName- the name of the filter to retrieve- Returns:
- the filter that matches the name
- Throws:
IOException- if the filter name was invalid
-
getFilter
public Filter getFilter(COSName filterName) throws IOException
Returns a filter instance given its COSName.- Parameters:
filterName- the name of the filter to retrieve- Returns:
- the filter that matches the name
- Throws:
IOException- if the filter name was invalid
-
-