Top Fields Constructors Methods
io.netty.handler.codec.compression

public final Class Brotli

extends Object
Class Inheritance
Imports
com.aayushatharva.brotli4j.Brotli4jLoader, io.netty.util.internal.PlatformDependent, io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory

Field Summary

Modifier and TypeField and Description
private static Throwable
private static final ClassNotFoundException
private static final InternalLogger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Throwable
cause()

Returns Throwable of unavailability cause

public static void
ensureAvailability()

Throws when brotli support is missing from the classpath or is unavailable on this platform

public static boolean

Returns:

true when brotli4j is in the classpath and native library is available on this platform and could be loaded
isAvailable
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

causeback to summary
private static Throwable cause
CNFEback to summary
private static final ClassNotFoundException CNFE
loggerback to summary
private static final InternalLogger logger

Constructor Detail

Brotliback to summary
private Brotli()

Method Detail

causeback to summary
public static Throwable cause()

Returns Throwable of unavailability cause

ensureAvailabilityback to summary
public static void ensureAvailability() throws Throwable

Throws when brotli support is missing from the classpath or is unavailable on this platform

Exceptions
Throwable:
a ClassNotFoundException if brotli4j is missing or a UnsatisfiedLinkError if brotli4j native lib can't be loaded
isAvailableback to summary
public static boolean isAvailable()
Returns:boolean

true when brotli4j is in the classpath and native library is available on this platform and could be loaded