Autopsy  4.21.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 JFileChooserFactory chooserHelper = new JFileChooserFactory()
static final int COLUMN_SAMPLING_ROW_NUM = 100
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 63 of file

Constructor & Destructor Documentation

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

Private constructor for the action.

Definition at line 97 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 109 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 175 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 208 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 232 of file

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

Definition at line 78 of file

final int org.sleuthkit.autopsy.directorytree.ExportCSVAction.COLUMN_SAMPLING_ROW_NUM = 100

Definition at line 65 of file

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

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

Definition at line 67 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 66 of file

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

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

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