mirror of https://github.com/apache/druid.git
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:
parent
3a5d516308
commit
ee37ff2502
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue