Package org.verapdf.features
Class ImageFeaturesData.Filter
java.lang.Object
org.verapdf.features.ImageFeaturesData.Filter
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- ImageFeaturesData
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 Summary
Modifier and TypeMethodDescriptionvoidclose()getName()static ImageFeaturesData.FilternewInstance(String name, Map<String, String> properties, InputStream stream) Constructs new Filter
-
Method Details
-
newInstance
public static ImageFeaturesData.Filter newInstance(String name, Map<String, String> properties, InputStream stream) Constructs new Filter- Parameters:
name- name of a filterproperties- map of properties of a filterstream- stream which used in filter as its parameter for JBIG2Decode filter
-
getName
- Returns:
- name of a filter
-
getProperties
- Returns:
- map of properties of a filter
-
getStream
- Returns:
- stream which used in filter as its parameter for JBIG2Decode filter
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-