Class ApacheCommonCompressionCodecs

java.lang.Object
fr.ens.biologie.genomique.eoulsan.io.ApacheCommonCompressionCodecs

public class ApacheCommonCompressionCodecs extends Object
This class allow to create input and output stream for compression codecs of the Apache Common Compression library.
Since:
2.0
Author:
Laurent Jourdren
  • Constructor Details

    • ApacheCommonCompressionCodecs

      public ApacheCommonCompressionCodecs()
  • Method Details

    • createBZip2InputStream

      public static InputStream createBZip2InputStream(InputStream is) throws IOException
      Create a bzip2 input stream.
      Parameters:
      is - input stream
      Returns:
      an uncompressed input stream
      Throws:
      IOException - if an error occurs while creating the input stream
    • createBZip2OutputStream

      public static OutputStream createBZip2OutputStream(OutputStream os) throws IOException
      Create a bzip2 output stream.
      Parameters:
      os - the output stream to compress
      Returns:
      a compressed output stream
      Throws:
      IOException - if an error occurs while creating the output stream