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

Inherits AbstractAction.

Public Member Functions

 ExternalViewerAction (String title, Node fileNode)
 
void actionPerformed (ActionEvent e)
 

Static Public Member Functions

static void openFile (String mimeType, String ext, File file)
 
static void openURL (String path)
 

Private Attributes

final AbstractFile fileObject
 
String fileObjectExt
 
boolean isExecutable
 

Static Private Attributes

static final Logger logger = Logger.getLogger(ExternalViewerAction.class.getName())
 

Detailed Description

Extracts a File object to a temporary file in the case directory, and then tries to open it in the user's system with the default or user specified associated application.

Definition at line 45 of file ExternalViewerAction.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.directorytree.ExternalViewerAction.ExternalViewerAction ( String  title,
Node  fileNode 
)
Parameters
titleName of the action
fileNodeFile to display

Definition at line 89 of file ExternalViewerAction.java.

Member Function Documentation

void org.sleuthkit.autopsy.directorytree.ExternalViewerAction.actionPerformed ( ActionEvent  e)
static void org.sleuthkit.autopsy.directorytree.ExternalViewerAction.openFile ( String  mimeType,
String  ext,
File  file 
)
static

Opens a file, taking into account user preferences and then the default associated application.

Parameters
mimeTypeMIME type of the file
extextension of the file
filethe file object

Check if the file MIME type or extension exists in the user defined settings. Otherwise open with the default associated application.

Definition at line 151 of file ExternalViewerAction.java.

Referenced by org.sleuthkit.autopsy.directorytree.ExternalViewerAction.actionPerformed(), and org.sleuthkit.autopsy.datamodel.Reports.ReportNode.OpenReportAction.actionPerformed().

static void org.sleuthkit.autopsy.directorytree.ExternalViewerAction.openURL ( String  path)
static

Opens a URL using the default desktop browser

Parameters
pathURL to open

Definition at line 220 of file ExternalViewerAction.java.

Referenced by org.sleuthkit.autopsy.datamodel.Reports.ReportNode.OpenReportAction.actionPerformed().

Member Data Documentation

final AbstractFile org.sleuthkit.autopsy.directorytree.ExternalViewerAction.fileObject
private

Definition at line 48 of file ExternalViewerAction.java.

String org.sleuthkit.autopsy.directorytree.ExternalViewerAction.fileObjectExt
private
boolean org.sleuthkit.autopsy.directorytree.ExternalViewerAction.isExecutable
private

Definition at line 51 of file ExternalViewerAction.java.

final Logger org.sleuthkit.autopsy.directorytree.ExternalViewerAction.logger = Logger.getLogger(ExternalViewerAction.class.getName())
staticprivate

Definition at line 47 of file ExternalViewerAction.java.


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

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