Class HadoopCompressionCodecs
java.lang.Object
fr.ens.biologie.genomique.eoulsan.io.HadoopCompressionCodecs
This class allow to create input and output stream for compression codec of Hadoop.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamCreate a bzip2 input stream.static OutputStreamCreate a bzip2 output stream.
-
Constructor Details
-
HadoopCompressionCodecs
public HadoopCompressionCodecs()
-
-
Method Details
-
createBZip2InputStream
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
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
-