Package com.github.luben.zstd.util
Enum Native
- All Implemented Interfaces:
Serializable,Comparable<Native>
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidTell the library to assume the native library is already loaded.static booleanisLoaded()static voidload()static voidstatic NativeReturns the enum constant of this type with the specified name.static Native[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
assumeLoaded
public static void assumeLoaded()Tell the library to assume the native library is already loaded. This is escape hatch for environments that have special requirements for how the native part is loaded. This allows them to load the so/dll manually and tell zstd-jni to not attempt loading it again. -
isLoaded
public static boolean isLoaded() -
load
public static void load() -
load
-