Package org.verapdf.as.filters
Class ASFilterFactory
java.lang.Object
org.verapdf.as.filters.ASFilterFactory
- All Implemented Interfaces:
IASFilterFactory
Factory for constructing COSFilters.
- Author:
- Sergey Shemyakov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInFilter
(ASInputStream inputStream, COSDictionary decodeParams) Gets decoded stream from the given one.getOutFilter
(ASOutputStream outputStream) Gets encoded stream from the given one.
-
Constructor Details
-
ASFilterFactory
-
-
Method Details
-
getInFilter
public ASInFilter getInFilter(ASInputStream inputStream, COSDictionary decodeParams) throws IOException Gets decoded stream from the given one.- Specified by:
getInFilter
in interfaceIASFilterFactory
- Parameters:
inputStream
- is an encoded stream.decodeParams
- is dictionary with parameters for filter.- Returns:
- decoded stream.
- Throws:
IOException
- if decode filter for given stream is not supported.
-
getOutFilter
Gets encoded stream from the given one.- Specified by:
getOutFilter
in interfaceIASFilterFactory
- Parameters:
outputStream
- is data to be encoded.- Returns:
- encoded stream.
- Throws:
IOException
- if current encode filter is not supported.
-