docs: public static boolean isCompressed(InputStream inputStream) throws IOException {
          ByteArrayOutputStream buffer = new ByteArrayOutputStream();
  
          byte[] data = new byte[2];
  
          int nRead = inputStream.read(data, 0, 2);
          buffer.write(data, 0, nRead);
          buffer.flush();
  
          return isCompressed(buffer.toByteArray());
      }