Package org.verapdf.as.filters
Class ASFilterFactory
- java.lang.Object
-
- org.verapdf.as.filters.ASFilterFactory
-
- All Implemented Interfaces:
IASFilterFactory
public class ASFilterFactory extends Object implements IASFilterFactory
Factory for constructing COSFilters.- Author:
- Sergey Shemyakov
-
-
Constructor Summary
Constructors Constructor Description ASFilterFactory(ASAtom filterType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASInFiltergetInFilter(ASInputStream inputStream, COSDictionary decodeParams)Gets decoded stream from the given one.ASOutFiltergetOutFilter(ASOutputStream outputStream)Gets encoded stream from the given one.
-
-
-
Constructor Detail
-
ASFilterFactory
public ASFilterFactory(ASAtom filterType)
-
-
Method Detail
-
getInFilter
public ASInFilter getInFilter(ASInputStream inputStream, COSDictionary decodeParams) throws IOException
Gets decoded stream from the given one.- Specified by:
getInFilterin 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
public ASOutFilter getOutFilter(ASOutputStream outputStream) throws IOException
Gets encoded stream from the given one.- Specified by:
getOutFilterin interfaceIASFilterFactory- Parameters:
outputStream- is data to be encoded.- Returns:
- encoded stream.
- Throws:
IOException- if current encode filter is not supported.
-
-