Package com.aayushatharva.brotli4j
Class Brotli4jLoader
java.lang.Object
com.aayushatharva.brotli4j.Brotli4jLoader
Loads Brotli Native Library
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UNAVAILABILITY_CAUSE
-
-
Constructor Details
-
Brotli4jLoader
public Brotli4jLoader()
-
-
Method Details
-
isAvailable
public static boolean isAvailable()- Returns:
trueif the Brotli native library is available elsefalse.
-
ensureAvailability
public static void ensureAvailability()Ensure Brotli native library is available.- Throws:
UnsatisfiedLinkError- If unavailable.
-
resolveWorkdir
Resolves the directory used to extract the bundled native library.If the
com.aayushatharva.brotli4j.native.workdirsystem property is set, it is used as the extraction directory (created if it does not exist). Otherwise falls back tojava.io.tmpdir. A custom workdir is useful whenjava.io.tmpdiris mountednoexec.- Throws:
IOException
-
getPlatform
-