Class Zstd
java.lang.Object
io.netty.handler.codec.compression.Zstd
public final class Zstd
extends java.lang.Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final java.lang.Throwableprivate static final InternalLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic java.lang.Throwablecause()ReturnsThrowableof unavailability causestatic voidThrows when zstd support is missing from the classpath or is unavailable on this platformstatic booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
logger
-
cause
private static final java.lang.Throwable cause
-
-
Constructor Details
-
Zstd
private Zstd()
-
-
Method Details
-
isAvailable
public static boolean isAvailable()- Returns:
- true when zstd-jni is in the classpath and native library is available on this platform and could be loaded
-
ensureAvailability
public static void ensureAvailability() throws java.lang.ThrowableThrows when zstd support is missing from the classpath or is unavailable on this platform- Throws:
java.lang.Throwable- a ClassNotFoundException if zstd-jni is missing or a ExceptionInInitializerError if zstd native lib can't be loaded
-
cause
public static java.lang.Throwable cause()ReturnsThrowableof unavailability cause
-