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

Inherits AbstractAction.

Classes

class  CSVWriter
 

Public Member Functions

void actionPerformed (ActionEvent e)
 

Static Public Member Functions

static synchronized ExportCSVAction getInstance ()
 
static void saveNodesToCSV (Collection<?extends Node > nodesToExport, Component component)
 

Private Member Functions

 ExportCSVAction ()
 

Static Private Member Functions

static String getDefaultOutputFileName (Node parent)
 
static String getExportDirectory (Case openCase)
 
static void updateExportDirectory (String exportPath, Case openCase)
 

Static Private Attributes

static final JFileChooserFactory chooserHelper = new JFileChooserFactory()
 
static final List< String > columnsToSkip
 
static final String DEFAULT_FILENAME = "Results"
 
static ExportCSVAction instance
 
static final Logger logger = Logger.getLogger(ExportCSVAction.class.getName())
 
static String userDefinedExportPath
 

Detailed Description

Exports CSV version of result nodes to a location selected by the user.

Definition at line 59 of file ExportCSVAction.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.directorytree.ExportCSVAction.ExportCSVAction ( )
private

Private constructor for the action.

Definition at line 92 of file ExportCSVAction.java.

Referenced by org.sleuthkit.autopsy.directorytree.ExportCSVAction.getInstance().

Member Function Documentation

void org.sleuthkit.autopsy.directorytree.ExportCSVAction.actionPerformed ( ActionEvent  e)

Asks user to choose destination, then extracts content to destination (recursing on directories).

Parameters
eThe action event.

Definition at line 104 of file ExportCSVAction.java.

References org.sleuthkit.autopsy.directorytree.ExportCSVAction.saveNodesToCSV().

static String org.sleuthkit.autopsy.directorytree.ExportCSVAction.getDefaultOutputFileName ( Node  parent)
staticprivate

Create a default name for the CSV output.

Parameters
parentThe parent node for the selected nodes
Returns
the default name

Definition at line 170 of file ExportCSVAction.java.

Referenced by org.sleuthkit.autopsy.directorytree.ExportCSVAction.saveNodesToCSV().

static String org.sleuthkit.autopsy.directorytree.ExportCSVAction.getExportDirectory ( Case  openCase)
staticprivate

Get the export directory path.

Parameters
openCaseThe current case.
Returns
The export directory path.

Definition at line 203 of file ExportCSVAction.java.

References org.sleuthkit.autopsy.casemodule.Case.getExportDirectory(), and org.sleuthkit.autopsy.directorytree.ExportCSVAction.userDefinedExportPath.

Referenced by org.sleuthkit.autopsy.directorytree.ExportCSVAction.saveNodesToCSV().

static synchronized ExportCSVAction org.sleuthkit.autopsy.directorytree.ExportCSVAction.getInstance ( )
static
static void org.sleuthkit.autopsy.directorytree.ExportCSVAction.saveNodesToCSV ( Collection<?extends Node >  nodesToExport,
Component  component 
)
static
static void org.sleuthkit.autopsy.directorytree.ExportCSVAction.updateExportDirectory ( String  exportPath,
Case  openCase 
)
staticprivate

Update the default export directory. If the directory path matches the case export directory, then the directory used will always match the export directory of any given case. Otherwise, the path last used will be saved.

Parameters
exportPathThe export path.
openCaseThe current case.

Definition at line 227 of file ExportCSVAction.java.

References org.sleuthkit.autopsy.casemodule.Case.getExportDirectory().

Referenced by org.sleuthkit.autopsy.directorytree.ExportCSVAction.saveNodesToCSV().

Member Data Documentation

final JFileChooserFactory org.sleuthkit.autopsy.directorytree.ExportCSVAction.chooserHelper = new JFileChooserFactory()
staticprivate

Definition at line 73 of file ExportCSVAction.java.

final List<String> org.sleuthkit.autopsy.directorytree.ExportCSVAction.columnsToSkip
staticprivate
Initial value:
= Arrays.asList(AbstractFilePropertyType.SCORE.toString(),
AbstractFilePropertyType.COMMENT.toString(), AbstractFilePropertyType.OCCURRENCES.toString())

Definition at line 63 of file ExportCSVAction.java.

final String org.sleuthkit.autopsy.directorytree.ExportCSVAction.DEFAULT_FILENAME = "Results"
staticprivate

Definition at line 62 of file ExportCSVAction.java.

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

Definition at line 61 of file ExportCSVAction.java.

String org.sleuthkit.autopsy.directorytree.ExportCSVAction.userDefinedExportPath
staticprivate

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

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