Package org.verapdf.features
Class ImageFeaturesData.Filter
- java.lang.Object
-
- org.verapdf.features.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
String
getName()
Map<String,String>
getProperties()
InputStream
getStream()
static ImageFeaturesData.Filter
newInstance(String name, Map<String,String> properties, InputStream stream)
Constructs new Filter
-
-
-
Method Detail
-
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
public String getName()
- Returns:
- name of a filter
-
getStream
public InputStream getStream()
- Returns:
- stream which used in filter as its parameter for JBIG2Decode filter
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-