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

Inherits org.sleuthkit.autopsy.datamodel.utils.AbstractNodePropertySheetTask< AbstractNode >.

Public Member Functions

 FileNameTransTask (String fileName, AbstractNode node, PropertyChangeListener listener)
final void run ()
final Future<?> submit ()

Static Public Member Functions

static String getPropertyName ()

Protected Member Functions

PropertyChangeEvent computePropertyValue (AbstractNode node) throws Exception
abstract PropertyChangeEvent computePropertyValue (T node) throws Exception

Private Attributes

final String fileName

Static Private Attributes

static final String EVENT_SOURCE = FileNameTransTask.class.getName()
static final String PROPERTY_NAME = EVENT_SOURCE + ".TranslatedFileName"

Detailed Description

An AbstractNodePropertySheetTask that translates a file name for an AbstractNode's property sheet.

Definition at line 30 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.utils.FileNameTransTask.FileNameTransTask ( String  fileName,
AbstractNode  node,
PropertyChangeListener  listener 

Constructs an AbstractNodePropertySheetTask that translates a file name for an AbstractNode's property sheet. When the translation is complete, a PropertyChangeEvent will be fired to the node's PropertyChangeListener. Call getPropertyName() to identify the property.

nodeThe node.
listenerThe node's PropertyChangeListener.
fileNameTHe file name.

Definition at line 50 of file

References org.sleuthkit.autopsy.datamodel.utils.FileNameTransTask.fileName.

Member Function Documentation

PropertyChangeEvent org.sleuthkit.autopsy.datamodel.utils.FileNameTransTask.computePropertyValue ( AbstractNode  node) throws Exception
abstract PropertyChangeEvent org.sleuthkit.autopsy.datamodel.utils.AbstractNodePropertySheetTask< T extends AbstractNode >.computePropertyValue ( node) throws Exception

Computes the values for the property sheet of an AbstractNode. The results of the computation are returned as a PropertyChangeEvent which is fired to the PropertyChangeEventListener of the node.

IMPORTANT: Implementations of this method should check for cancellation by calling Thread.currentThread().isInterrupted() at appropriate intervals.

nodeThe AbstractNode.
The result of the computation as a PropertyChangeEvent, may be null.
static String org.sleuthkit.autopsy.datamodel.utils.FileNameTransTask.getPropertyName ( )
final void org.sleuthkit.autopsy.datamodel.utils.AbstractNodePropertySheetTask< T extends AbstractNode >.run ( )
final Future<?> org.sleuthkit.autopsy.datamodel.utils.AbstractNodePropertySheetTask< T extends AbstractNode >.submit ( )

Submits this task to the ExecutorService for the thread pool.

The task's Future from the ExecutorService.

Definition at line 117 of file

References org.sleuthkit.autopsy.datamodel.utils.AbstractNodePropertySheetTask< T extends AbstractNode >::submitTask().

Member Data Documentation

final String org.sleuthkit.autopsy.datamodel.utils.FileNameTransTask.EVENT_SOURCE = FileNameTransTask.class.getName()

Definition at line 32 of file

final String org.sleuthkit.autopsy.datamodel.utils.FileNameTransTask.fileName
final String org.sleuthkit.autopsy.datamodel.utils.FileNameTransTask.PROPERTY_NAME = EVENT_SOURCE + ".TranslatedFileName"

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.