title: Decompressing a byte[] using GzipInputStream
body: <p>I have a class that compresses and decompresses a byte array; </p>
  
  <pre><code>public class Compressor
  {
      public static byte[] compress(final byte[] input) throws IOException
      {
          try (ByteArrayOutputStream bout = new ByteArrayOutputStream();
                  GZIPOutputStream gzipper = new GZIPOutputStream(bout))
          {
              gzipper.write(input, 0, input.length);
              gzipper.close();
  
              return bout.toByteArray();
          }
      }
  
      public static byte[] decompress(final byte[] input) throws IOException
      {
          try (ByteArrayInputStream bin = new ByteArrayInputStream(input);
                  GZIPInputStream gzipper = new GZIPInputStream(bin))
          {
              // Not sure where to go here
          }
      }
  }
  </code></pre>
  
  <p>How do I decompress the input and return a byte array?</p>
  
  <p><strong>Note:</strong> I don't want to do any conversion to strings because of character encoding issues.</p>