Autopsy  4.19.0
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 FileNameTransTask.java.

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.

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

Definition at line 50 of file FileNameTransTask.java.

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

Member Function Documentation

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

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.

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

Submits this task to the ExecutorService for the thread pool.

Returns
The task's Future from the ExecutorService.

Definition at line 117 of file AbstractNodePropertySheetTask.java.

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

Definition at line 32 of file FileNameTransTask.java.

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

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

Copyright © 2012-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.