public static boolean isGzipContent(String contentEncoding){
  return contentEncoding != null && contentEncoding.contains("gzip");
}

public static boolean isGzipContent ( String contentEncoding ) { return contentEncoding != null && contentEncoding . contains ( "gzip" ) ; }
whether the content has been compressed .
