Package org.fusesource.jansi.internal
Class JansiLoader
- java.lang.Object
-
- org.fusesource.jansi.internal.JansiLoader
-
public class JansiLoader extends Object
Set the system properties, org.jansi.lib.path, org.jansi.lib.name, appropriately so that jansi can find *.dll, *.jnilib and *.so files, according to the current OS (win, linux, mac).The library files are automatically extracted from this project's package (JAR).
usage: call
initialize()
before using Jansi.
-
-
Constructor Summary
Constructors Constructor Description JansiLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getMajorVersion()
static int
getMinorVersion()
static String
getNativeLibraryPath()
static String
getNativeLibrarySourceUrl()
static String
getVersion()
static boolean
initialize()
Loads Jansi native library.
-
-
-
Constructor Detail
-
JansiLoader
public JansiLoader()
-
-
Method Detail
-
initialize
public static boolean initialize()
Loads Jansi native library.- Returns:
- True if jansi native library is successfully loaded; false otherwise.
-
getNativeLibraryPath
public static String getNativeLibraryPath()
-
getNativeLibrarySourceUrl
public static String getNativeLibrarySourceUrl()
-
getMajorVersion
public static int getMajorVersion()
- Returns:
- The major version of the jansi library.
-
getMinorVersion
public static int getMinorVersion()
- Returns:
- The minor version of the jansi library.
-
getVersion
public static String getVersion()
- Returns:
- The version of the jansi library.
-
-