Sleuth Kit Java Bindings (JNI)  4.3
Java bindings for using The Sleuth Kit
org.sleuthkit.datamodel.LibraryUtils Class Reference

Classes

enum  Lib
 

Static Public Member Functions

static boolean loadSleuthkitJNI ()
 

Static Public Attributes

static final String[] EXTS = new String[]{".so", ".dylib", ".dll", ".jnilib"}
 

Static Private Member Functions

static String getExtByPlatform ()
 
static String getPlatform ()
 
static boolean isLinux ()
 
static boolean isMac ()
 
static boolean isWindows ()
 
static boolean loadNativeLibFromTskJar (Lib library)
 

Detailed Description

Collection of methods to load libraries embedded in the TSK Datamodel Jar file.

Author
jwallace

Definition at line 33 of file LibraryUtils.java.

Member Function Documentation

static String org.sleuthkit.datamodel.LibraryUtils.getExtByPlatform ( )
staticprivate
static String org.sleuthkit.datamodel.LibraryUtils.getPlatform ( )
staticprivate

Get the name of the current platform.

Returns
a platform identifier, formatted as "OS_ARCH/OS_NAME"

Definition at line 87 of file LibraryUtils.java.

References org.sleuthkit.datamodel.LibraryUtils.isLinux(), org.sleuthkit.datamodel.LibraryUtils.isMac(), and org.sleuthkit.datamodel.LibraryUtils.isWindows().

Referenced by org.sleuthkit.datamodel.LibraryUtils.loadNativeLibFromTskJar().

static boolean org.sleuthkit.datamodel.LibraryUtils.isLinux ( )
staticprivate

Is the platform Linux?

Returns

Definition at line 124 of file LibraryUtils.java.

Referenced by org.sleuthkit.datamodel.LibraryUtils.getPlatform().

static boolean org.sleuthkit.datamodel.LibraryUtils.isMac ( )
staticprivate
static boolean org.sleuthkit.datamodel.LibraryUtils.isWindows ( )
staticprivate

Is the platform Windows?

Returns

Definition at line 106 of file LibraryUtils.java.

Referenced by org.sleuthkit.datamodel.LibraryUtils.getExtByPlatform(), and org.sleuthkit.datamodel.LibraryUtils.getPlatform().

static boolean org.sleuthkit.datamodel.LibraryUtils.loadNativeLibFromTskJar ( Lib  library)
staticprivate
static boolean org.sleuthkit.datamodel.LibraryUtils.loadSleuthkitJNI ( )
static

Load the Sleuthkit JNI.

Returns
true if library was found and loaded

Definition at line 72 of file LibraryUtils.java.

References org.sleuthkit.datamodel.LibraryUtils.loadNativeLibFromTskJar(), and org.sleuthkit.datamodel.LibraryUtils.Lib.TSK_JNI.

Member Data Documentation

final String [] org.sleuthkit.datamodel.LibraryUtils.EXTS = new String[]{".so", ".dylib", ".dll", ".jnilib"}
static

Definition at line 35 of file LibraryUtils.java.


The documentation for this class was generated from the following file:

Copyright © 2011-2015 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.