Autopsy  4.8.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | List of all members
org.sleuthkit.autopsy.coreutils.SqliteUtil Class Reference

Static Public Member Functions

static void findAndCopySQLiteMetaFile (AbstractFile sqliteFile) throws NoCurrentCaseException, TskCoreException, IOException
 
static void findAndCopySQLiteMetaFile (AbstractFile sqliteFile, String metaFileName) throws NoCurrentCaseException, TskCoreException, IOException
 
static String getUniqueTempDirectoryPath (AbstractFile file) throws NoCurrentCaseException
 
static String writeAbstractFileToLocalDisk (AbstractFile file) throws IOException, NoCurrentCaseException
 

Private Member Functions

 SqliteUtil ()
 

Detailed Description

Sqlite utility class. Find and copy metafiles, write sqlite abstract files to temp directory, and generate unique temp directory paths.

Definition at line 37 of file SqliteUtil.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.coreutils.SqliteUtil.SqliteUtil ( )
private

Definition at line 39 of file SqliteUtil.java.

Member Function Documentation

static void org.sleuthkit.autopsy.coreutils.SqliteUtil.findAndCopySQLiteMetaFile ( AbstractFile  sqliteFile) throws NoCurrentCaseException, TskCoreException, IOException
static

Overloaded implementation of findAndCopySQLiteMetaFile , automatically tries to copy -wal and -shm files without needing to know their existence.

Parameters
sqliteFilefile which has -wal and -shm meta files
Exceptions
NoCurrentCaseExceptionCase has been closed.
TskCoreExceptionfileManager cannot find AbstractFile files.
IOExceptionIssue during writing to file.

Definition at line 56 of file SqliteUtil.java.

Referenced by org.sleuthkit.autopsy.keywordsearch.SqliteTextExtractor.SQLiteTableReader.SQLiteTableReader().

static void org.sleuthkit.autopsy.coreutils.SqliteUtil.findAndCopySQLiteMetaFile ( AbstractFile  sqliteFile,
String  metaFileName 
) throws NoCurrentCaseException, TskCoreException, IOException
static

Searches for a meta file associated with the give SQLite database. If found, it copies this file into the temp directory of the current case.

Parameters
sqliteFilefile being processed
metaFileNamename of meta file to look for
Exceptions
NoCurrentCaseExceptionCase has been closed.
TskCoreExceptionfileManager cannot find AbstractFile files.
IOExceptionIssue during writing to file.

Definition at line 75 of file SqliteUtil.java.

References org.sleuthkit.autopsy.casemodule.services.FileManager.findFiles(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.services.Services.getFileManager(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), and org.sleuthkit.autopsy.coreutils.SqliteUtil.writeAbstractFileToLocalDisk().

static String org.sleuthkit.autopsy.coreutils.SqliteUtil.getUniqueTempDirectoryPath ( AbstractFile  file) throws NoCurrentCaseException
static

Generates a unique local disk path that resides in the temp directory of the current case.

Parameters
fileThe database abstract file
Returns
Unique local disk path living in the temp directory of the case
Exceptions
org.sleuthkit.autopsy.casemodule.NoCurrentCaseException

Definition at line 126 of file SqliteUtil.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getTempDirectory().

Referenced by org.sleuthkit.autopsy.coreutils.SqliteUtil.writeAbstractFileToLocalDisk().

static String org.sleuthkit.autopsy.coreutils.SqliteUtil.writeAbstractFileToLocalDisk ( AbstractFile  file) throws IOException, NoCurrentCaseException
static

Copies the file contents into a unique path in the current case temp directory.

Parameters
fileAbstractFile from the data source
Returns
The path of the file on disk
Exceptions
IOExceptionException writing file contents
NoCurrentCaseExceptionCurrent case closed during file copying

Definition at line 105 of file SqliteUtil.java.

References org.sleuthkit.autopsy.coreutils.SqliteUtil.getUniqueTempDirectoryPath(), and org.sleuthkit.autopsy.datamodel.ContentUtils.writeToFile().

Referenced by org.sleuthkit.autopsy.coreutils.SqliteUtil.findAndCopySQLiteMetaFile(), and org.sleuthkit.autopsy.keywordsearch.SqliteTextExtractor.SQLiteTableReader.SQLiteTableReader().


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

Copyright © 2012-2018 Basis Technology. Generated on: Thu Oct 4 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.