Class FilterUtil


  • public final class FilterUtil
    extends java.lang.Object
    This file is a helper class for internal usage only. Be aware that its API and functionality may be changed in future.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger LOGGER
      The Logger instance.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FilterUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] flateDecode​(byte[] input)
      Decodes a stream that has the FlateDecode filter.
      static byte[] flateDecode​(byte[] input, boolean strict)
      A helper to FlateDecode.
      static java.io.InputStream getInflaterInputStream​(java.io.InputStream input)  
      static void inflateData​(byte[] deflated, byte[] inflated)
      This method provides support for general purpose decompression using the popular ZLIB compression library.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
        The Logger instance.
    • Constructor Detail

      • FilterUtil

        private FilterUtil()
    • Method Detail

      • flateDecode

        public static byte[] flateDecode​(byte[] input,
                                         boolean strict)
        A helper to FlateDecode.
        Parameters:
        input - the input data
        strict - true to read a correct stream. false to try to read a corrupted stream
        Returns:
        the decoded data
      • flateDecode

        public static byte[] flateDecode​(byte[] input)
        Decodes a stream that has the FlateDecode filter.
        Parameters:
        input - the input data
        Returns:
        the decoded data
      • inflateData

        public static void inflateData​(byte[] deflated,
                                       byte[] inflated)
        This method provides support for general purpose decompression using the popular ZLIB compression library.
        Parameters:
        deflated - the input data bytes
        inflated - the buffer for the uncompressed data
      • getInflaterInputStream

        public static java.io.InputStream getInflaterInputStream​(java.io.InputStream input)