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


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

Constructor & Destructor Documentation

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

Private constructor for the action.

Definition at line 89 of file

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

eThe action event.

Definition at line 101 of file

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

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

Create a default name for the CSV output.

parentThe parent node for the selected nodes
the default name

Definition at line 167 of file

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

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

Get the export directory path.

openCaseThe current case.
The export directory path.

Definition at line 200 of file

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 void org.sleuthkit.autopsy.directorytree.ExportCSVAction.saveNodesToCSV ( Collection<?extends Node >  nodesToExport,
Component  component 
static void org.sleuthkit.autopsy.directorytree.ExportCSVAction.updateExportDirectory ( String  exportPath,
Case  openCase 

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.

exportPathThe export path.
openCaseThe current case.

Definition at line 224 of file

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

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

Member Data Documentation

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

Definition at line 62 of file

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

Definition at line 61 of file

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

Definition at line 60 of file

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

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.