Enum Class Native

java.lang.Object
java.lang.Enum<Native>
com.github.luben.zstd.util.Native
All Implemented Interfaces:
Serializable, Comparable<Native>, Constable

public enum Native extends Enum<Native>
  • Field Details

  • Constructor Details

    • Native

      private Native()
  • Method Details

    • values

      public static Native[] 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

      public static Native valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • osName

      private static String osName()
    • osArch

      private static String osArch()
    • libExtension

      private static String libExtension()
    • resourceName

      private static String 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

      private static void loadLibrary(String libName)
    • loadLibraryFile

      private static void loadLibraryFile(String libFileName)
    • load

      public static void load()
    • load

      public static void load(File tempFolder)