The library files are automatically extracted from this project's package (JAR).
usage: call initialize() before using Jansi.
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| private static String | |
| private static String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | cleanup()
Deleted old native libraries e.g. on Windows the DLL file is not removed on VM-Exit (bug #80) |
| private static String | |
| private static boolean | extractAndLoadLibraryFile(String
Library path. libFolderForCurrentOS, String Library name. libraryFileName, String Target folder. targetFolder)Extracts and loads the specified library file to the target folder |
| public static int | |
| public static int | |
| public static String | |
| public static String | |
| private static File | |
| public static String | |
| private static boolean | |
| public static synchronized boolean | Returns: True if jansi native library is successfully loaded; false otherwise.Loads Jansi native library. |
| private static void | |
| private static boolean | Returns: True for successfully loading; false otherwise.Path of the native library. libPath)Loads native library using the given path and name of the library. |
| private static String | |
| private static int |
| loaded | back to summary |
|---|---|
| private static boolean loaded | |
| nativeLibraryPath | back to summary |
|---|---|
| private static String nativeLibraryPath | |
| nativeLibrarySourceUrl | back to summary |
|---|---|
| private static String nativeLibrarySourceUrl | |
| JansiLoader | back to summary |
|---|---|
| public JansiLoader() | |
| cleanup | back to summary |
|---|---|
| pack-priv static void cleanup() Deleted old native libraries e.g. on Windows the DLL file is not removed on VM-Exit (bug #80) | |
| contentsEquals | back to summary |
|---|---|
| private static String contentsEquals(InputStream in1, InputStream in2) throws IOException | |
| extractAndLoadLibraryFile | back to summary |
|---|---|
| private static boolean extractAndLoadLibraryFile(String libFolderForCurrentOS, String libraryFileName, String targetFolder) Extracts and loads the specified library file to the target folder | |
| getMajorVersion | back to summary |
|---|---|
public static int getMajorVersion()
| |
| getMinorVersion | back to summary |
|---|---|
public static int getMinorVersion()
| |
| getNativeLibraryPath | back to summary |
|---|---|
| public static String getNativeLibraryPath() | |
| getNativeLibrarySourceUrl | back to summary |
|---|---|
| public static String getNativeLibrarySourceUrl() | |
| getTempDir | back to summary |
|---|---|
| private static File getTempDir() | |
| getVersion | back to summary |
|---|---|
public static String getVersion()
| |
| hasResource | back to summary |
|---|---|
| private static boolean hasResource(String path) | |
| initialize | back to summary |
|---|---|
| public static synchronized boolean initialize() Loads Jansi native library.
| |
| loadJansiNativeLibrary | back to summary |
|---|---|
| private static void loadJansiNativeLibrary() throws Exception Loads jansi library using given path and name of the library. | |
| loadNativeLibrary | back to summary |
|---|---|
| private static boolean loadNativeLibrary(File libPath) Loads native library using the given path and name of the library.
| |
| randomUUID | back to summary |
|---|---|
| private static String randomUUID() | |
| readNBytes | back to summary |
|---|---|
| private static int readNBytes(InputStream in, byte[] b) throws IOException | |