org.pdfbox.filter

Class FilterManager


public class FilterManager
extends java.lang.Object

This will contain manage all the different types of filters that are available.
Version:
$Revision: 1.13 $
Author:
Ben Litchfield

Constructor Summary

FilterManager()
Constructor.

Method Summary

void
addFilter(COSName filterName, Filter filter)
This will add an available filter.
Filter
getFilter(String filterName)
This will get a filter by name.
Filter
getFilter(COSName filterName)
This will get a filter by name.
Collection
getFilters()
This will get all of the filters that are available in the system.

Constructor Details

FilterManager

public FilterManager()
Constructor.

Method Details

addFilter

public void addFilter(COSName filterName,
                      Filter filter)
This will add an available filter.
Parameters:
filterName - The name of the filter.
filter - The filter to use.

getFilter

public Filter getFilter(String filterName)
            throws IOException
This will get a filter by name.
Parameters:
filterName - The name of the filter to retrieve.
Returns:
The filter that matches the name.

getFilter

public Filter getFilter(COSName filterName)
            throws IOException
This will get a filter by name.
Parameters:
filterName - The name of the filter to retrieve.
Returns:
The filter that matches the name.

getFilters

public Collection getFilters()
This will get all of the filters that are available in the system.
Returns:
All available filters in the system.