Class COSFilterRegistry


  • public class COSFilterRegistry
    extends Object
    Class that registers encoding and decoding filters.
    Author:
    Timur Kamalov
    • 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