19 package org.sleuthkit.datamodel;
21 import java.text.MessageFormat;
22 import java.util.ResourceBundle;
23 import java.util.List;
24 import java.util.logging.Level;
25 import java.util.logging.Logger;
41 private static ResourceBundle
bundle = ResourceBundle.getBundle(
"org.sleuthkit.datamodel.Bundle");
91 long ctime,
long crtime,
long atime,
long mtime,
102 metaFlags, size, ctime, crtime, atime, mtime, (
short) 0, 0, 0, md5Hash, knownState, parentPath, mimeType);
103 setLocalFilePath(localPath,
false);
154 if (derivedMethod == null && hasDerivedMethod ==
true) {
157 if (derivedMethod == null) {
158 hasDerivedMethod =
false;
160 }
catch (TskCoreException e) {
161 String msg = MessageFormat.format(bundle.getString(
"DerviedFile.derivedMethod.exception.msg1.text"),
getId());
162 logger.log(Level.WARNING, msg, e);
163 throw new TskCoreException(msg, e);
179 return v.
visit(
this);
191 public <T> T accept(ContentVisitor<T> v) {
192 return v.visit(
this);
220 return super.toString(preserveState) +
"DerivedFile{"
221 +
"derivedMethod=" + derivedMethod
222 +
", hasDerivedMethod=" + hasDerivedMethod
240 if (this.rederiveDetails == null) {
241 this.rederiveDetails =
"";
244 this.toolVersion =
"";
248 void setToolName(String toolName) {
252 void setToolVersion(String toolVersion) {
256 void setOther(String other) {
282 return "DerivedMethod{" +
"derived_id=" + derivedId +
", toolName=" + toolName +
", toolVersion=" + toolVersion +
", other=" + other +
", rederiveDetails=" + rederiveDetails +
'}';
321 @SuppressWarnings(
"deprecation")
328 long ctime,
long crtime,
long atime,
long mtime,
334 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
DERIVED
File derived from a parent file (i.e. from ZIP)
List< Long > getChildrenIds()
List< Content > getChildren()
volatile DerivedMethod derivedMethod
synchronized DerivedMethod getDerivedMethod()
final TSK_FS_META_TYPE_ENUM metaType