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");
41 private boolean hasDerivedMethod =
true;
88 long dataSourceObjectId,
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);
107 setEncodingType(encodingType);
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);
142 return derivedMethod;
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
205 private final int derivedId;
206 private String toolName;
207 private String toolVersion;
208 private String other;
209 private String rederiveDetails;
212 this.derivedId = derivedId;
213 this.rederiveDetails = rederiveDetails;
214 if (this.rederiveDetails == null) {
215 this.rederiveDetails =
"";
218 this.toolVersion =
"";
222 void setToolName(String toolName) {
223 this.toolName = toolName;
226 void setToolVersion(String toolVersion) {
227 this.toolVersion = toolVersion;
230 void setOther(String other) {
251 return rederiveDetails;
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
DerivedMethod(int derivedId, String rederiveDetails)
String getRederiveDetails()
final TSK_FS_NAME_FLAG_ENUM dirFlag
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()
synchronized DerivedMethod getDerivedMethod()
final TSK_FS_META_TYPE_ENUM metaType