Package org.verapdf.cos.filters
Class COSFilterRegistry
- java.lang.Object
-
- org.verapdf.cos.filters.COSFilterRegistry
-
public class COSFilterRegistry extends Object
Class that registers encoding and decoding filters.- Author:
- Timur Kamalov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
-
-