Autopsy  4.16.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.discovery.search.DomainSearchThumbnailLoader Class Reference

Inherits CacheLoader< DomainSearchThumbnailRequest, Image >.

Public Member Functions

 DomainSearchThumbnailLoader ()
 
Image load (DomainSearchThumbnailRequest thumbnailRequest) throws TskCoreException, DiscoveryException
 

Private Member Functions

void addIfJpeg (List< AbstractFile > files, Content sourceContent)
 
List< AbstractFile > getJpegsFromWebCache (SleuthkitCase caseDb, List< BlackboardArtifact > artifacts) throws TskCoreException
 
List< AbstractFile > getJpegsFromWebDownload (SleuthkitCase caseDb, List< BlackboardArtifact > artifacts) throws TskCoreException
 

Private Attributes

final DomainSearchArtifactsCache artifactsCache
 

Static Private Attributes

static final String JPG_EXTENSION = "jpg"
 
static final String JPG_MIME_TYPE = "image/jpeg"
 
static final String UNSUPPORTED_IMAGE = "org/sleuthkit/autopsy/images/image-extraction-not-supported.png"
 

Detailed Description

Loads a thumbnail for the given request. Thumbnail candidates are JPEG files that are either TSK_WEB_DOWNLOAD or TSK_WEB_CACHE artifacts. JPEG files are sorted by most recent if sourced from TSK_WEB_DOWNLOADs. JPEG files are sorted by size if sourced from TSK_WEB_CACHE artifacts. Artifacts are first loaded from the DomainSearchArtifactsCache and then further analyzed.

Definition at line 47 of file DomainSearchThumbnailLoader.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.DomainSearchThumbnailLoader ( )

Construct a new DomainSearchThumbnailLoader.

Definition at line 57 of file DomainSearchThumbnailLoader.java.

Member Function Documentation

void org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.addIfJpeg ( List< AbstractFile >  files,
Content  sourceContent 
)
private

Checks if the candidate source content is indeed a JPEG file.

Parameters
filesThe list of source content files which are jpegs to add to.
sourceContentThe source content to check and possibly add.

Definition at line 154 of file DomainSearchThumbnailLoader.java.

Referenced by org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.getJpegsFromWebCache(), and org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.getJpegsFromWebDownload().

List<AbstractFile> org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.getJpegsFromWebCache ( SleuthkitCase  caseDb,
List< BlackboardArtifact >  artifacts 
) throws TskCoreException
private

Finds all JPEG source files from TSK_WEB_CACHE instances.

Parameters
caseDbThe case database being searched.
artifactsThe list of artifacts to get jpegs from.
Returns
The list of AbstractFiles representing jpegs which were associated with the artifacts.

Definition at line 134 of file DomainSearchThumbnailLoader.java.

References org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.addIfJpeg().

Referenced by org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.load().

List<AbstractFile> org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.getJpegsFromWebDownload ( SleuthkitCase  caseDb,
List< BlackboardArtifact >  artifacts 
) throws TskCoreException
private

Finds all JPEG source files from TSK_WEB_DOWNLOAD instances.

Parameters
caseDbThe case database being searched.
artifactsThe list of artifacts to get jpegs from.
Returns
The list of AbstractFiles representing jpegs which were associated with the artifacts.
Exceptions
TskCoreException

Definition at line 116 of file DomainSearchThumbnailLoader.java.

References org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.addIfJpeg().

Referenced by org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.load().

Image org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.load ( DomainSearchThumbnailRequest  thumbnailRequest) throws TskCoreException, DiscoveryException

Member Data Documentation

final DomainSearchArtifactsCache org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.artifactsCache
private

Definition at line 52 of file DomainSearchThumbnailLoader.java.

final String org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.JPG_EXTENSION = "jpg"
staticprivate

Definition at line 50 of file DomainSearchThumbnailLoader.java.

final String org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.JPG_MIME_TYPE = "image/jpeg"
staticprivate

Definition at line 51 of file DomainSearchThumbnailLoader.java.

final String org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.UNSUPPORTED_IMAGE = "org/sleuthkit/autopsy/images/image-extraction-not-supported.png"
staticprivate

Definition at line 49 of file DomainSearchThumbnailLoader.java.


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

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