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

Inherits Observable, and org.sleuthkit.autopsy.datamodel.AutopsyVisitableItem.

Classes

class  ByMimeTypeNode
 
class  ByMimeTypeNodeChildren
 
class  MediaSubTypeNode
 
class  MediaSubTypeNodeChildren
 
class  MediaTypeNode
 
class  MediaTypeNodeChildren
 

Static Public Member Functions

static boolean isEmptyMimeTypeNode (Node node)
 

Private Member Functions

List< String > getMediaTypeList ()
 
void populateHashMap ()
 
void removeListeners ()
 

Private Attributes

final HashMap< String, List< String > > existingMimeTypes = new HashMap<>()
 
final PropertyChangeListener pcl
 
final SleuthkitCase skCase
 

Static Private Attributes

static final Logger LOGGER = Logger.getLogger(FileTypesByMimeType.class.getName())
 

Detailed Description

Class which contains the Nodes for the 'By Mime Type' view located in the File Types view, shows all files with a mime type. Will initially be empty until file type identification has been performed. Contains a Property Change Listener which is checking for changes in IngestJobEvent Completed or Cancelled and IngestModuleEvent Content Changed.

Definition at line 60 of file FileTypesByMimeType.java.

Member Function Documentation

List<String> org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.getMediaTypeList ( )
private

Retrieve the media types by retrieving the keyset from the hashmap.

Returns
mediaTypes - a list of strings representing all distinct media types of files for this case

Definition at line 113 of file FileTypesByMimeType.java.

References org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.existingMimeTypes.

Referenced by org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.ByMimeTypeNodeChildren.createKeys().

static boolean org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.isEmptyMimeTypeNode ( Node  node)
static

Method to check if the node in question is a ByMimeTypeNode which is empty.

Parameters
nodethe Node which you wish to check.
Returns
True if originNode is an instance of ByMimeTypeNode and is empty, false otherwise.

Definition at line 184 of file FileTypesByMimeType.java.

Referenced by org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.respondSelection().

void org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.populateHashMap ( )
private

Performs the query on the database to get all distinct MIME types of files in it, and populate the hashmap with those results.

Definition at line 125 of file FileTypesByMimeType.java.

References org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.existingMimeTypes.

void org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.removeListeners ( )
private

Member Data Documentation

final HashMap<String, List<String> > org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.existingMimeTypes = new HashMap<>()
private

The nodes of this tree will be determined dynamically by the mimetypes which exist in the database. This hashmap will store them with the media type as the key and a list of media subtypes as the value.

Definition at line 68 of file FileTypesByMimeType.java.

Referenced by org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.getMediaTypeList(), and org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.populateHashMap().

final Logger org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.LOGGER = Logger.getLogger(FileTypesByMimeType.class.getName())
staticprivate

Definition at line 69 of file FileTypesByMimeType.java.

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.pcl
private
Initial value:
= (PropertyChangeEvent evt) -> {
String eventType = evt.getPropertyName();
if (eventType.equals(IngestManager.IngestJobEvent.COMPLETED.toString())
|| eventType.equals(IngestManager.IngestJobEvent.CANCELLED.toString())) {
try {
Case.getCurrentCase();
} catch (IllegalStateException notUsed) {
}
} else if (eventType.equals(Case.Events.CURRENT_CASE.toString())) {
if (evt.getNewValue() == null) {
}
}
}

Definition at line 81 of file FileTypesByMimeType.java.

Referenced by org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.removeListeners().

final SleuthkitCase org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.skCase
private

Definition at line 62 of file FileTypesByMimeType.java.


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

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