Class BrotliUtils
- java.lang.Object
-
- org.apache.commons.compress.compressors.brotli.BrotliUtils
-
public class BrotliUtils extends java.lang.ObjectUtility code for the Brotli compression format.- Since:
- 1.14
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisBrotliCompressionAvailable()Are the classes required to support Brotli compression available?static voidsetCacheBrotliAvailablity(boolean doCache)Whether to cache the result of the Brotli for Java check.
-
-
-
Method Detail
-
isBrotliCompressionAvailable
public static boolean isBrotliCompressionAvailable()
Are the classes required to support Brotli compression available?- Returns:
- true if the classes required to support Brotli compression are available
-
setCacheBrotliAvailablity
public static void setCacheBrotliAvailablity(boolean doCache)
Whether to cache the result of the Brotli for Java check.This defaults to
falsein an OSGi environment andtrueotherwise.- Parameters:
doCache- whether to cache the result
-
-