19 package org.sleuthkit.datamodel;
21 import java.text.MessageFormat;
22 import java.util.ResourceBundle;
23 import java.util.logging.Level;
24 import java.util.logging.Logger;
40 private static ResourceBundle
bundle = ResourceBundle.getBundle(
"org.sleuthkit.datamodel.Bundle");
93 long ctime,
long crtime,
long atime,
long mtime,
105 metaFlags, size, ctime, crtime, atime, mtime, (
short) 0, 0, 0, md5Hash, knownState, parentPath, mimeType, extension);
106 setLocalFilePath(localPath,
false);
130 if (derivedMethod == null && hasDerivedMethod ==
true) {
133 if (derivedMethod == null) {
134 hasDerivedMethod =
false;
136 }
catch (TskCoreException e) {
137 String msg = MessageFormat.format(bundle.getString(
"DerviedFile.derivedMethod.exception.msg1.text"),
getId());
138 logger.log(Level.WARNING, msg, e);
139 throw new TskCoreException(msg, e);
155 return v.
visit(
this);
167 public <T> T accept(ContentVisitor<T> v) {
168 return v.visit(
this);
194 return super.toString(preserveState) +
"DerivedFile{"
195 +
"derivedMethod=" + derivedMethod
196 +
", hasDerivedMethod=" + hasDerivedMethod
214 if (this.rederiveDetails == null) {
215 this.rederiveDetails =
"";
218 this.toolVersion =
"";
222 void setToolName(String toolName) {
226 void setToolVersion(String toolVersion) {
230 void setOther(String other) {
256 return "DerivedMethod{" +
"derived_id=" + derivedId +
", toolName=" + toolName +
", toolVersion=" + toolVersion +
", other=" + other +
", rederiveDetails=" + rederiveDetails +
'}';
295 @SuppressWarnings(
"deprecation")
302 long ctime,
long crtime,
long atime,
long mtime,
308 ctime, crtime, atime, mtime,
final TSK_FS_NAME_TYPE_ENUM dirType
static ResourceBundle bundle
DerivedMethod(int derivedId, String rederiveDetails)
String getRederiveDetails()
final TSK_FS_NAME_FLAG_ENUM dirFlag
TskData.EncodingType encodingType
LOCAL
Local file that was added (not from a disk image)
String toString(boolean preserveState)
final Set< TSK_FS_META_FLAG_ENUM > metaFlags
TskData.FileKnown knownState
SleuthkitCase getSleuthkitCase()
String localPath
local path as stored in db tsk_files_path, is relative to the db,
static final Logger logger
volatile DerivedMethod derivedMethod
synchronized DerivedMethod getDerivedMethod()
final TSK_FS_META_TYPE_ENUM metaType