Autopsy  4.7.0
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 73 of file ExifParserFileIngestModule.java.

Member Function Documentation

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

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

Parameters
ffile to be checked
Returns
true if to be processed

Definition at line 261 of file ExifParserFileIngestModule.java.

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

ProcessResult org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.process ( AbstractFile  file)
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 267 of file ExifParserFileIngestModule.java.

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.

Parameters
contextProvides data and services specific to the ingest job and the ingest pipeline of which the module is a part.
Exceptions
org.sleuthkit.autopsy.ingest.IngestModule.IngestModuleException

Implements org.sleuthkit.autopsy.ingest.IngestModule.

Definition at line 94 of file ExifParserFileIngestModule.java.

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

Member Data Documentation

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

Definition at line 85 of file ExifParserFileIngestModule.java.

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

Definition at line 77 of file ExifParserFileIngestModule.java.

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

Definition at line 78 of file ExifParserFileIngestModule.java.

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

Definition at line 82 of file ExifParserFileIngestModule.java.

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

Definition at line 80 of file ExifParserFileIngestModule.java.

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

Definition at line 79 of file ExifParserFileIngestModule.java.

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

Definition at line 75 of file ExifParserFileIngestModule.java.

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

Definition at line 81 of file ExifParserFileIngestModule.java.

final IngestServices org.sleuthkit.autopsy.modules.exif.ExifParserFileIngestModule.services = IngestServices.getInstance()
private

Definition at line 76 of file ExifParserFileIngestModule.java.

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

Definition at line 83 of file ExifParserFileIngestModule.java.

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

Definition at line 84 of file ExifParserFileIngestModule.java.


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

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.