Sleuth Kit Java Bindings (JNI)  4.8.0
Java bindings for using The Sleuth Kit
org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess Class Reference

Public Member Functions

synchronized long commit () throws TskCoreException
 
synchronized String currentDirectory ()
 
synchronized void revert () throws TskCoreException
 
void run (String deviceId, String[] imageFilePaths, int sectorSize) throws TskCoreException, TskDataException
 
void run (String[] imageFilePaths) throws TskCoreException, TskDataException
 
void run (String deviceId, String[] imageFilePaths) throws TskCoreException, TskDataException
 
synchronized void stop () throws TskCoreException
 

Detailed Description

Encapsulates a multi-step process to add an image to the case database.

Definition at line 449 of file SleuthkitJNI.java.

Member Function Documentation

synchronized long org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.commit ( ) throws TskCoreException

Completes the process of adding an image to the case database that was started by calling AddImageProcess.run.

Returns
The object id of the image that was added.
Exceptions
TskCoreExceptionif a critical error occurs within the SleuthKit.

Definition at line 577 of file SleuthkitJNI.java.

Referenced by org.sleuthkit.datamodel.Examples.Sample.run().

synchronized String org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.currentDirectory ( )

Gets the file system directory currently being processed by the SleuthKit.

Returns
The directory

Definition at line 602 of file SleuthkitJNI.java.

synchronized void org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.revert ( ) throws TskCoreException

Rolls back the process of adding an image to the case database that was started by calling AddImageProcess.run.

Exceptions
TskCoreExceptionif a critical error occurs within the SleuthKit.

Definition at line 553 of file SleuthkitJNI.java.

void org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.run ( String  deviceId,
String[]  imageFilePaths,
int  sectorSize 
) throws TskCoreException, TskDataException

Starts the process of adding an image to the case database. Either AddImageProcess.commit or AddImageProcess.revert MUST be called after calling AddImageProcess.run.

Parameters
deviceIdAn ASCII-printable identifier for the device associated with the image that should be unique across multiple cases (e.g., a UUID).
imageFilePathsFull path(s) to the image file(s).
sectorSizeThe sector size (use '0' for autodetect).
Exceptions
TskCoreExceptionif a critical error occurs within the SleuthKit.
TskDataExceptionif a non-critical error occurs within the SleuthKit (should be OK to continue the process)

Definition at line 500 of file SleuthkitJNI.java.

References org.sleuthkit.datamodel.SleuthkitJNI.openImage().

Referenced by org.sleuthkit.datamodel.Examples.Sample.run(), and org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.run().

void org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.run ( String[]  imageFilePaths) throws TskCoreException, TskDataException

Starts the process of adding an image to the case database. Either commit() or revert() MUST be called after calling run().

Parameters
imageFilePathsFull path(s) to the image file(s).
Exceptions
TskCoreExceptionif a critical error occurs within the SleuthKit.
TskDataExceptionif a non-critical error occurs within the SleuthKit (should be OK to continue the process)
Deprecated:
Use run(String dataSourceId, String[] imageFilePaths) instead

Definition at line 622 of file SleuthkitJNI.java.

References org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.run().

void org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.run ( String  deviceId,
String[]  imageFilePaths 
) throws TskCoreException, TskDataException

Starts the process of adding an image to the case database. Either AddImageProcess.commit or AddImageProcess.revert MUST be called after calling AddImageProcess.run.

Parameters
deviceIdAn ASCII-printable identifier for the device associated with the image that should be unique across multiple cases (e.g., a UUID).
imageFilePathsFull path(s) to the image file(s).
Exceptions
TskCoreExceptionif a critical error occurs within the SleuthKit.
TskDataExceptionif a non-critical error occurs within the SleuthKit (should be OK to continue the process)

Definition at line 643 of file SleuthkitJNI.java.

References org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.run().

synchronized void org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.stop ( ) throws TskCoreException

Stops the process of adding the image to the case database that was started by calling AddImageProcess.run. AddImageProcess.revert should be called after calling AddImageProcess.stop.

Exceptions
TskCoreExceptionif a critical error occurs within the SleuthKit.

Definition at line 534 of file SleuthkitJNI.java.


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

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