Package com.github.luben.zstd.util
Enum Class Native
- All Implemented Interfaces:
Serializable
,Comparable<Native>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Tell the library to assume the native library is already loaded.static boolean
isLoaded()
private static String
static void
load()
static void
private static void
loadLibrary
(String libName) private static void
loadLibraryFile
(String libFileName) private static String
osArch()
private static String
osName()
private static String
static Native
Returns 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
-