Class BrotliUtils
java.lang.Object
org.apache.commons.compress.compressors.brotli.BrotliUtils
Utility code for the Brotli compression format.
- Since:
- 1.14
- This class is thread-safe
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Are the classes required to support Brotli compression available?static void
setCacheBrotliAvailablity
(boolean doCache) Sets whether to cache the result of the Brotli for Java check.
-
Method Details
-
isBrotliCompressionAvailable
Are the classes required to support Brotli compression available?- Returns:
- true if the classes required to support Brotli compression are available
-
setCacheBrotliAvailablity
Sets whether to cache the result of the Brotli for Java check.This defaults to
false
in an OSGi environment andtrue
otherwise.- Parameters:
doCache
- whether to cache the result
-