Sleuth Kit Java Bindings (JNI)  4.12.0
Java bindings for using The Sleuth Kit
org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment Class Reference

Inherits org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.Attachment.

Public Member Functions

 FileAttachment (SleuthkitCase caseDb, Content dataSource, String pathName) throws TskCoreException
 
 FileAttachment (DerivedFile derivedFile) throws TskCoreException
 
 FileAttachment (AbstractFile abstractFile)
 
String getLocation ()
 
long getObjectId ()
 
Long getObjId ()
 
String getPathName ()
 

Detailed Description

File attachment to a message.

The file may or may not have been downloaded, and hence may or may not be part of the data source.

A file attachment may also be created for a blob that is added as a derived file.

Definition at line 114 of file MessageAttachments.java.

Constructor & Destructor Documentation

org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.FileAttachment ( SleuthkitCase  caseDb,
Content  dataSource,
String  pathName 
) throws TskCoreException

Creates a file attachment from a file path.

Searches the specified data source for the give file name and path, and if found, saves the object Id of the file. If no match is found, then just the pathName is remembered.

Parameters
caseDbCase database.
dataSourceData source to search in.
pathNameFull path name of the attachment file.
Exceptions
TskCoreExceptionIf there is an error in finding the attached file.

Definition at line 146 of file MessageAttachments.java.

org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.FileAttachment ( DerivedFile  derivedFile) throws TskCoreException

Creates a file attachment from a derived file.

Occasionally the contents of an attachment may be stored as a blob in an application database. In that case, the ingest module must write out the contents to a local file in the case, and create a corresponding DerivedFile object.

Parameters
derivedFileDerived file for the attachment.
Exceptions
TskCoreException

Definition at line 174 of file MessageAttachments.java.

org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.FileAttachment ( AbstractFile  abstractFile)

Creates a file attachment from a file.

Parameters
abstractFileAbstract file for attachment..

Definition at line 184 of file MessageAttachments.java.

References org.sleuthkit.datamodel.AbstractContent.getId(), org.sleuthkit.datamodel.AbstractContent.getName(), and org.sleuthkit.datamodel.AbstractFile.getParentPath().

Member Function Documentation

String org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.getLocation ( )

Returns location of an attachment - a path or a URL.

Returns
String representing location of attachment.

Implements org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.Attachment.

Definition at line 326 of file MessageAttachments.java.

long org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.getObjectId ( )

Returns the objectID of the attachment file, if the file was found in the data source.

Returns
object id of the file. -1 if no matching file is found.

Definition at line 204 of file MessageAttachments.java.

Long org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.getObjId ( )
String org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.getPathName ( )

Returns the full path name of the file.

Returns
full path name.

Definition at line 194 of file MessageAttachments.java.


The documentation for this class was generated from the following file:

Copyright © 2011-2021 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.