40public abstract class FsContent
extends AbstractFile {
42 private static final Logger logger = Logger.getLogger(FsContent.class.getName());
43 private List<String> metaDataText =
null;
110 long dataSourceObjectId,
129 List<Attribute> fileAttributes) {
130 super(db, objId, dataSourceObjectId, Long.valueOf(fsObjId),
attrType,
attrId, name,
fileType,
metaAddr,
metaSeq,
dirType,
metaType,
dirFlag,
metaFlags,
size,
ctime,
crtime,
atime,
mtime,
modes,
uid,
gid,
md5Hash,
sha256Hash,
sha1Hash,
knownState,
parentPath, mimeType, extension, ownerUid, osAccountObjId, collected, fileAttributes);
147 @SuppressWarnings(
"deprecation")
150 synchronized (
this) {
164 @SuppressWarnings(
"deprecation")
165 long getFileHandle() {
181 @SuppressWarnings(
"deprecation")
183 if (offset == 0 &&
size == 0) {
189 if (dataSource instanceof
Image && ArrayUtils.isEmpty(((
Image) dataSource).getPaths())) {
202 }
catch (TskCoreException ex) {
203 logger.log(Level.SEVERE,
"Exception while calling 'getFileSystem' on " +
this, ex);
242 if (metaDataText !=
null) {
248 metaDataText =
new ArrayList<String>();
249 metaDataText.add(
"");
262 @SuppressWarnings(
"deprecation")
295 logger.log(Level.SEVERE,
"Error loading unique path for object ID: {0}",
this.getId());
298 return super.toString(preserveState)
301 +
"\t" +
"uniquePath " + path
302 +
"\t" +
"fileHandle " + getFileHandle()
346 @SuppressWarnings(
"deprecation")
351 this(db, objId, db.getDataSourceObjectId(objId), fsObjId,
attrType, (
int)
attrId, name,
TSK_DB_FILES_TYPE_ENUM.
FS,
metaAddr,
metaSeq,
dirType,
metaType,
dirFlag,
metaFlags,
size,
ctime,
crtime,
atime,
mtime,
modes,
uid,
gid,
md5Hash,
null,
null,
knownState,
parentPath,
null,
null,
OsAccount.NO_OWNER_ID,
OsAccount.NO_ACCOUNT, Collections.emptyList());
405 @SuppressWarnings(
"deprecation")
406 FsContent(SleuthkitCase db,
long objId,
long dataSourceObjectId,
long fsObjId, TSK_FS_ATTR_TYPE_ENUM
attrType,
short attrId,
410 this(db, objId, dataSourceObjectId, fsObjId,
attrType, (int)
attrId, name, TSK_DB_FILES_TYPE_ENUM.FS,
metaAddr,
metaSeq,
dirType,
metaType,
dirFlag,
metaFlags,
size,
ctime,
crtime,
atime,
mtime,
modes,
uid,
gid,
md5Hash,
null,
null,
knownState,
parentPath, mimeType,
null, OsAccount.NO_OWNER_ID, OsAccount.NO_ACCOUNT, Collections.emptyList());
470 @SuppressWarnings(
"deprecation")
471 FsContent(SleuthkitCase db,
473 long dataSourceObjectId,
491 List<Attribute> fileAttributes) {
492 this(db, objId, dataSourceObjectId, fsObjId,
attrType,
attrId, name, TSK_DB_FILES_TYPE_ENUM.FS,
metaAddr,
metaSeq,
dirType,
metaType,
dirFlag,
metaFlags,
size,
ctime,
crtime,
atime,
mtime,
modes,
uid,
gid,
md5Hash,
null,
null,
knownState,
parentPath, mimeType,
null, OsAccount.NO_OWNER_ID, OsAccount.NO_ACCOUNT, TskData.
CollectedStatus.
UNKNOWN, Collections.emptyList());
SleuthkitCase getSleuthkitCase()
synchronized int readInt(byte[] buf, long offset, long len)
synchronized List< String > getMetaDataText()
synchronized void close()
AbstractFile getParentDirectory()
String toString(boolean preserveState)