Enum Class Native
- All Implemented Interfaces:
Serializable, Comparable<Native>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidTell the library to assume the native library is already loaded.static booleanisLoaded()private static Stringstatic voidload()static voidprivate static voidloadLibrary(String libName) private static voidloadLibraryFile(String libFileName) private static StringosArch()private static StringosName()private static Stringstatic NativeReturns the enum constant of this class with the specified name.static Native[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Field Details
-
nativePathOverride
- See Also:
-
libnameShort
- See Also:
-
libname
- See Also:
-
errorMsg
-
loaded
private static boolean loaded
-
-
Constructor Details
-
Native
private Native()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
osName
-
osArch
-
libExtension
-
resourceName
-
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() -
loadLibrary
-
loadLibraryFile
-
load
public static void load() -
load
-