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

public final Class Zstd

extends Object
Class Inheritance
Imports
io.netty.util.internal.PlatformDependent, io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
Zstd()

Method Summary

Modifier and TypeMethod and Description
public static Throwable
cause()

Returns Throwable of unavailability cause

public static void
ensureAvailability()

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

public static boolean

Returns:

true when zstd-jni 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 final Throwable cause
loggerback to summary
private static final InternalLogger logger

Constructor Detail

Zstdback to summary
private Zstd()

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 zstd support is missing from the classpath or is unavailable on this platform

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

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