Class CompressionLibLoaderProtection

java.lang.Object
nom.tam.fits.compress.CompressionLibLoaderProtection

public final class CompressionLibLoaderProtection extends Object
Deprecated.
(for internal use) The visibility of this class may be reduced to package level in the future.
(for internal use) Shorthand access to Apache commons-compress stream decompressors. Forgive the awkward name.
Author:
Richard van Nieuwenhoven
  • Method Details

    • createBZip2Stream

      public static InputStream createBZip2Stream(InputStream in) throws IOException
      Deprecated.
      Returns the Apache commons-compress decompressed input stream for .bz2 compressed inputs
      Parameters:
      in - the .bz2 compressed input stream
      Returns:
      the decompressed input stream using Apache commons-compress.
      Throws:
      IOException - if there was an IO error processing the input.
    • createZStream

      public static InputStream createZStream(InputStream in) throws IOException
      Deprecated.
      Returns the Apache commons-compress decompressed input stream for .Z compressed inputs
      Parameters:
      in - the .Z compressed input stream
      Returns:
      the decompressed input stream using Apache commons-compress.
      Throws:
      IOException - if there was an IO error processing the input.