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.


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 63 of file

Member Function Documentation

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

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

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

Definition at line 116 of file

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)

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

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

Definition at line 193 of file

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

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

Member Data Documentation

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

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 71 of file

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())

Definition at line 72 of file

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

Definition at line 84 of file

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

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

Definition at line 65 of file

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

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