Package org.verapdf.cos.filters
Class COSFilterRegistry
java.lang.Object
org.verapdf.cos.filters.COSFilterRegistry
Class that registers encoding and decoding filters.
- Author:
- Timur Kamalov
-
Method Summary
Modifier and TypeMethodDescriptionstatic ASInputStream
getDecodeFilter
(ASAtom filterName, ASInputStream inputStream, COSDictionary decodeParams) Gets decode filter from given input stream with given parameters.static ASOutFilter
getEncodeFilter
(ASAtom filterName, ASOutputStream outputStream) Gets decode filter from given input stream.
-
Method Details
-
getDecodeFilter
public static ASInputStream getDecodeFilter(ASAtom filterName, ASInputStream inputStream, COSDictionary decodeParams) throws IOException Gets decode filter from given input stream with given parameters.- Parameters:
filterName
- is name of filter to decode stream with.inputStream
- is a stream with encoded data.decodeParams
- is dictionary with decoding parameters.- Returns:
- filter with decoded data.
- Throws:
IOException
-
getEncodeFilter
public static ASOutFilter getEncodeFilter(ASAtom filterName, ASOutputStream outputStream) throws IOException Gets decode filter from given input stream.- Parameters:
filterName
- is name of filter to encode stream with.outputStream
- is a stream with data to encode.- Returns:
- filter with encoded data.
- Throws:
IOException
-