Autopsy  4.18.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Public Attributes | Private Attributes | List of all members
org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes Enum Reference

Public Member Functions

 FileReportDataTypes (String name)
 
String getName ()
 
abstract String getValue (AbstractFile file)
 

Public Attributes

 A_TIME
 
 ADDRESS
 
 CR_TIME
 
 DELETED
 
 FILE_EXT
 
 FILE_TYPE
 
 FULL_PATH
 
 HASH_VALUE
 
 KNOWN_STATUS
 
 M_TIME
 
 NAME
 
 PERMISSIONS
 
 SIZE
 

Private Attributes

String name
 

Detailed Description

Represents Column Headers for FileList Reports.

Encapsulates functionality for getting column values from Files.

Author
jwallace

Definition at line 33 of file FileReportDataTypes.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.FileReportDataTypes ( String  name)

Definition at line 125 of file FileReportDataTypes.java.

Member Function Documentation

String org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.getName ( )
abstract String org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.getValue ( AbstractFile  file)
abstract

Get the value of the column from the file.

Returns

Member Data Documentation

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.A_TIME
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.aTime.text")) {
@Override
public String getValue(AbstractFile file) {
return file.getAtimeAsDate();
}
}

Definition at line 64 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.ADDRESS
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.address.text")) {
@Override
public String getValue(AbstractFile file) {
return String.valueOf(file.getMetaAddr());
}
}

Definition at line 88 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.CR_TIME
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.crTime.text")) {
@Override
public String getValue(AbstractFile file) {
return file.getCrtimeAsDate();
}
}

Definition at line 70 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.DELETED
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.isDel.text")) {
@Override
public String getValue(AbstractFile file) {
if (file.getMetaFlagsAsString().equals(TskData.TSK_FS_META_FLAG_ENUM.UNALLOC.toString())) {
return "yes";
}
return "";
}
}

Definition at line 55 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.FILE_EXT
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.fileExt.text")) {
@Override
public String getValue(AbstractFile file) {
String name = file.getName();
int extIndex = name.lastIndexOf(".");
return (extIndex == -1 ? "" : name.substring(extIndex));
}
}

Definition at line 41 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.FILE_TYPE
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.fileType.text")) {
@Override
public String getValue(AbstractFile file) {
return file.getMetaTypeAsString();
}
}

Definition at line 49 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.FULL_PATH
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.path.text")) {
@Override
public String getValue(AbstractFile file) {
try {
return file.getUniquePath();
} catch (TskCoreException ex) {
return "";
}
}
}

Definition at line 112 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.HASH_VALUE
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.hash.text")) {
@Override
public String getValue(AbstractFile file) {
return file.getMd5Hash();
}
}

Definition at line 94 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.KNOWN_STATUS
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.knownStatus.text")) {
@Override
public String getValue(AbstractFile file) {
return file.getKnown().getName();
}
}

Definition at line 100 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.M_TIME
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.mTime.text")) {
@Override
public String getValue(AbstractFile file) {
return file.getMtimeAsDate();
}
}

Definition at line 76 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.NAME
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.filename.text")) {
@Override
public String getValue(AbstractFile file) {
return file.getName();
}
}

Definition at line 35 of file FileReportDataTypes.java.

String org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.name
private

Definition at line 123 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.PERMISSIONS
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.perms.text")) {
@Override
public String getValue(AbstractFile file) {
return file.getModesAsString();
}
}

Definition at line 106 of file FileReportDataTypes.java.

org.sleuthkit.autopsy.report.infrastructure.FileReportDataTypes.SIZE
Initial value:
=(NbBundle.getMessage(FileReportDataTypes.class, "FileReportDataTypes.size.text")) {
@Override
public String getValue(AbstractFile file) {
return String.valueOf(file.getSize());
}
}

Definition at line 82 of file FileReportDataTypes.java.


The documentation for this enum 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.