Class ImageFeaturesData.Filter

  • All Implemented Interfaces:
    Closeable, AutoCloseable
    Enclosing class:
    ImageFeaturesData

    public static class ImageFeaturesData.Filter
    extends Object
    implements Closeable
    Class which represents a filter and it's parameters. For Any filter which has params dictionary, that dictionary will be present as a map, except of JBIG2Decode. As JBIG2Decode filter has only one entry in it's params dictionary and this entry's value is a stream, then, if this entry is present, we will have an empty properties and not null stream.
    • Method Detail

      • newInstance

        public static ImageFeaturesData.Filter newInstance​(String name,
                                                           Map<String,​String> properties,
                                                           InputStream stream)
        Constructs new Filter
        Parameters:
        name - name of a filter
        properties - map of properties of a filter
        stream - stream which used in filter as its parameter for JBIG2Decode filter
      • getName

        public String getName()
        Returns:
        name of a filter
      • getProperties

        public Map<String,​String> getProperties()
        Returns:
        map of properties of a filter
      • getStream

        public InputStream getStream()
        Returns:
        stream which used in filter as its parameter for JBIG2Decode filter