Autopsy  4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule Class Reference

Inherits org.sleuthkit.autopsy.ingest.FileIngestModule.

Public Member Functions

ProcessResult process (AbstractFile content)
void shutDown ()
void startUp (IngestJobContext context) throws IngestModuleException

Private Member Functions

boolean parsableFormat (AbstractFile f)

Private Attributes

Blackboard blackboard
final AtomicInteger filesProcessed = new AtomicInteger(0)
volatile boolean filesToFire = false
FileTypeDetector fileTypeDetector
long jobId
final List< BlackboardArtifact > listOfFacesDetectedArtifacts = new ArrayList<>()
final IngestServices services = IngestServices.getInstance()
final HashSet< String > supportedMimeTypes = new HashSet<>()
TimeZone timeZone = null

Static Private Attributes

static final Logger logger = Logger.getLogger(ExifParserFileIngestModule.class.getName())
static final IngestModuleReferenceCounter refCounter = new IngestModuleReferenceCounter()

Detailed Description

Ingest module to parse image Exif metadata. Currently only supports JPEG files. Ingests an image file and, if available, adds it's date, latitude, longitude, altitude, device model, and device make to a blackboard artifact.

Definition at line 71 of file

Member Function Documentation

boolean org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.parsableFormat ( AbstractFile  f)

Checks if should try to attempt to extract exif. Currently checks if JPEG image (by signature)

ffile to be checked
true if to be processed

Definition at line 251 of file

References org.sleuthkit.autopsy.modules.filetypeid.FileTypeDetector.getFileType().

ProcessResult org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.process ( AbstractFile  file)

Processes a file. Called between calls to startUp() and shutDown(). Will be called for each file in a data source.

fileThe file to analyze.
A result code indicating success or failure of the processing.

Implements org.sleuthkit.autopsy.ingest.FileIngestModule.

Definition at line 103 of file

References org.sleuthkit.autopsy.ingest.IngestServices.fireModuleDataEvent(),, org.sleuthkit.autopsy.casemodule.Case.getCurrentCase(), org.sleuthkit.autopsy.casemodule.Case.getServices(), and org.sleuthkit.autopsy.ingest.IngestModule.ProcessResult.OK.

void org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.shutDown ( )

Invoked by Autopsy when an ingest job is completed (either because the data has been analyzed or because the job was canceled - check IngestJobContext.fileIngestIsCancelled()), before the ingest module instance is discarded. The module should respond by doing things like releasing private resources, submitting final results, and posting a final ingest message.

Implements org.sleuthkit.autopsy.ingest.FileIngestModule.

Definition at line 266 of file

References org.sleuthkit.autopsy.ingest.IngestModuleReferenceCounter.decrementAndGet(), and org.sleuthkit.autopsy.ingest.IngestServices.fireModuleDataEvent().

void org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.startUp ( IngestJobContext  context) throws IngestModuleException

Invoked by Autopsy to allow an ingest module instance to set up any internal data structures and acquire any private resources it will need during an ingest job. If the module depends on loading any resources, it should do so in this method so that it can throw an exception in the case of an error and alert the user. Exceptions that are thrown from process() and shutDown() are logged, but do not stop processing of the data source.

contextProvides data and services specific to the ingest job and the ingest pipeline of which the module is a part.

Implements org.sleuthkit.autopsy.ingest.IngestModule.

Definition at line 92 of file

References org.sleuthkit.autopsy.ingest.IngestModuleReferenceCounter.incrementAndGet().

Member Data Documentation

Blackboard org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.blackboard

Definition at line 83 of file

final AtomicInteger org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.filesProcessed = new AtomicInteger(0)

Definition at line 75 of file

volatile boolean org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.filesToFire = false

Definition at line 76 of file

FileTypeDetector org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.fileTypeDetector

Definition at line 80 of file

long org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.jobId

Definition at line 78 of file

final List<BlackboardArtifact> org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.listOfFacesDetectedArtifacts = new ArrayList<>()

Definition at line 77 of file

final Logger org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.logger = Logger.getLogger(ExifParserFileIngestModule.class.getName())

Definition at line 73 of file

final IngestModuleReferenceCounter org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.refCounter = new IngestModuleReferenceCounter()

Definition at line 79 of file

final IngestServices = IngestServices.getInstance()

Definition at line 74 of file

final HashSet<String> org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.supportedMimeTypes = new HashSet<>()

Definition at line 81 of file

TimeZone org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.timeZone = null

Definition at line 82 of file

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

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