Class ZstdRuntime
java.lang.Object
org.apache.hc.client5.http.impl.ZstdRuntime
Utility to detect availability of the Zstandard JNI runtime on the classpath.
Used by the async client implementation to conditionally register
zstd encoders/decoders without creating a hard dependency on zstd-jni.
This class performs a lightweight reflective check and intentionally avoids
linking to JNI classes at compile time to prevent LinkageErrors when
the optional dependency is absent.
- Since:
- 5.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ZSTD
- See Also:
-
-
Constructor Details
-
ZstdRuntime
private ZstdRuntime()
-
-
Method Details
-
available
public static boolean available()- Returns:
trueifcom.github.luben.zstd.Zstdcan be loaded by the current class loader;falseotherwise
-