Java: How do I convert InputStream to GZIPInputStream?
问题 I have a method like public void put(@Nonnull final InputStream inputStream, @Nonnull final String uniqueId) throws PersistenceException { // a.) create gzip of inputStream final GZIPInputStream zipInputStream; try { zipInputStream = new GZIPInputStream(inputStream); } catch (IOException e) { e.printStackTrace(); throw new PersistenceException("Persistence Service could not received input stream to persist for " + uniqueId); } I wan to convert the inputStream into zipInputStream , what is the