Top Description Fields Constructors Methods
com.aayushatharva.brotli4j

public Class Brotli4jLoader

extends Object
Class Inheritance
Annotations
@Local
Imports
com.aayushatharva.brotli4j.common.annotations.Local, com.aayushatharva.brotli4j.service.BrotliNativeProvider, java.io.File, .InputStream, java.nio.file.Files, .StandardCopyOption, java.util.ServiceLoader

Loads Brotli Native Library

Field Summary

Modifier and TypeField and Description
private static final Throwable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
ensureAvailability()

Ensure Brotli native library is available.

private static String
public static Throwable
public static boolean

Returns:

true if the Brotli native library is available else false.
isAvailable
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

UNAVAILABILITY_CAUSEback to summary
private static final Throwable UNAVAILABILITY_CAUSE

Constructor Detail

Brotli4jLoaderback to summary
public Brotli4jLoader()

Method Detail

ensureAvailabilityback to summary
public static void ensureAvailability()

Ensure Brotli native library is available.

Exceptions
UnsatisfiedLinkError:
If unavailable.
getPlatformback to summary
private static String getPlatform()
getUnavailabilityCauseback to summary
public static Throwable getUnavailabilityCause()
isAvailableback to summary
public static boolean isAvailable()
Returns:boolean

true if the Brotli native library is available else false.