CompressionUtils: Make gzipInputStream public once again. (#5590)

But add a reference to "decompress" and mention that it's preferred
when reading from streams that come from files.
This commit is contained in:
Gian Merlino 2018-04-09 17:39:19 -07:00 committed by Fangjin Yang
parent 3a5d516308
commit ee37ff2502
1 changed files with 3 additions and 1 deletions

View File

@ -318,8 +318,10 @@ public class CompressionUtils
* @param in The raw input stream
*
* @return A GZIPInputStream that can handle concatenated gzip streams in the input
*
* @see #decompress(InputStream, String) which should be used instead for streams coming from files
*/
private static GZIPInputStream gzipInputStream(final InputStream in) throws IOException
public static GZIPInputStream gzipInputStream(final InputStream in) throws IOException
{
return new GZIPInputStream(
new FilterInputStream(in)