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;
46 private static ResourceBundle
bundle = ResourceBundle.getBundle(
"org.sleuthkit.datamodel.Bundle");
72 long ctime,
long crtime,
long atime,
long mtime,
77 metaFlags, size, ctime, crtime, atime, mtime, (
short) 0, 0, 0, md5Hash, knownState, parentPath);
94 while (dataSource == null) {
120 return v.
visit(
this);
124 public <T> T accept(ContentVisitor<T> v) {
125 return v.visit(
this);
136 if (derivedMethod == null && hasDerivedMethod ==
true) {
139 if (derivedMethod == null) {
140 hasDerivedMethod =
false;
142 }
catch (TskCoreException e) {
143 String msg = MessageFormat.format(bundle.getString(
"DerviedFile.derivedMethod.exception.msg1.text"),
getId());
144 logger.log(Level.WARNING, msg, e);
145 throw new TskCoreException(msg, e);
163 return super.toString(preserveState) +
"DerivedFile{"
164 +
"derivedMethod=" + derivedMethod
165 +
", hasDerivedMethod=" + hasDerivedMethod
184 if (this.rederiveDetails == null) {
185 this.rederiveDetails =
"";
188 this.toolVersion =
"";
192 void setToolName(String toolName) {
196 void setToolVersion(String toolVersion) {
200 void setOther(String other) {
226 return "DerivedMethod{" +
"derived_id=" + derivedId +
", toolName=" + toolName +
", toolVersion=" + toolVersion +
", other=" + other +
", rederiveDetails=" + rederiveDetails +
'}';
final TSK_FS_NAME_TYPE_ENUM dirType
synchronized Content getParent()
static ResourceBundle bundle
DerivedMethod(int derivedId, String rederiveDetails)
String getRederiveDetails()
final TSK_FS_NAME_FLAG_ENUM dirFlag
String rederiveDetails
details to rederive specific to this method
DerivedFile(SleuthkitCase db, long objId, String name, TSK_FS_NAME_TYPE_ENUM dirType, TSK_FS_META_TYPE_ENUM metaType, TSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags, long size, long ctime, long crtime, long atime, long mtime, String md5Hash, FileKnown knownState, String parentPath, String localPath, long parentId)
LOCAL
Local file that was added (not from a disk image)
String other
Other details.
String toString(boolean preserveState)
boolean hasDerivedMethod
whether it has the derived method to lazy load or not
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)
String toolName
Name of derivation method/tool.
List< Long > getChildrenIds()
List< Content > getChildren()
int derivedId
Unique id for this derivation method.
volatile DerivedMethod derivedMethod
synchronized DerivedMethod getDerivedMethod()
void setLocalPath(String localPath, boolean isAbsolute)
final TSK_FS_META_TYPE_ENUM metaType
String toolVersion
Version of tool used in derivation method.