19 package org.sleuthkit.autopsy.report.infrastructure;
21 import org.openide.util.NbBundle;
37 public String getValue(AbstractFile file) {
43 public String getValue(AbstractFile file) {
44 String name = file.getName();
45 int extIndex = name.lastIndexOf(
".");
46 return (extIndex == -1 ?
"" : name.substring(extIndex));
51 public String getValue(AbstractFile file) {
52 return file.getMetaTypeAsString();
57 public String getValue(AbstractFile file) {
58 if (file.getMetaFlagsAsString().equals(TskData.TSK_FS_META_FLAG_ENUM.UNALLOC.toString())) {
66 public String getValue(AbstractFile file) {
67 return file.getAtimeAsDate();
72 public String getValue(AbstractFile file) {
73 return file.getCrtimeAsDate();
78 public String getValue(AbstractFile file) {
79 return file.getMtimeAsDate();
84 public String getValue(AbstractFile file) {
85 return String.valueOf(file.getSize());
90 public String getValue(AbstractFile file) {
91 return String.valueOf(file.getMetaAddr());
96 public String getValue(AbstractFile file) {
97 return file.getMd5Hash();
102 public String getValue(AbstractFile file) {
103 return file.getKnown().getName();
108 public String getValue(AbstractFile file) {
109 return file.getModesAsString();
114 public String getValue(AbstractFile file) {
116 return file.getUniquePath();
117 }
catch (TskCoreException ex) {
138 public abstract String getValue(AbstractFile file);
FileReportDataTypes(String name)