- java.lang.Object
-
- io.netty5.handler.codec.compression.Brotli
-
public final class Brotli extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Throwable
cause()
ReturnsThrowable
of unavailability causestatic void
ensureAvailability()
Throws when brotli support is missing from the classpath or is unavailable on this platformstatic boolean
isAvailable()
-
-
-
Method Detail
-
isAvailable
public static boolean isAvailable()
- Returns:
- true when brotli4j is in the classpath and native library is available on this platform and could be loaded
-
ensureAvailability
public static void ensureAvailability() throws Throwable
Throws when brotli support is missing from the classpath or is unavailable on this platform- Throws:
Throwable
- a ClassNotFoundException if brotli4j is missing or a UnsatisfiedLinkError if brotli4j native lib can't be loaded
-
-