Class FilterFactory


  • public final class FilterFactory
    extends java.lang.Object
    Factory for Filter classes.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FilterFactory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.util.Collection<Filter> getAllFilters()  
      Filter getFilter​(java.lang.String filterName)
      Returns a filter instance given its name as a string.
      Filter getFilter​(COSName filterName)
      Returns a filter instance given its COSName.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

        public static final FilterFactory INSTANCE
        Singleton instance.
      • filters

        private final java.util.Map<COSName,​Filter> filters
    • Constructor Detail

      • FilterFactory

        private FilterFactory()
    • Method Detail

      • getFilter

        public Filter getFilter​(java.lang.String filterName)
                         throws java.io.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:
        java.io.IOException - if the filter name was invalid
      • getFilter

        public Filter getFilter​(COSName filterName)
                         throws java.io.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:
        java.io.IOException - if the filter name was invalid
      • getAllFilters

        java.util.Collection<Filter> getAllFilters()