Sleuth Kit Java Bindings (JNI)
4.12.1
Java bindings for using The Sleuth Kit
|
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 () |
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.
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.
caseDb | Case database. |
dataSource | Data source to search in. |
pathName | Full path name of the attachment file. |
TskCoreException | If 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.
derivedFile | Derived file for the attachment. |
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.
abstractFile | Abstract 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().
String org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.getLocation | ( | ) |
Returns location of an attachment - a path or a URL.
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.
Definition at line 204 of file MessageAttachments.java.
Long org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.getObjId | ( | ) |
Implements org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.Attachment.
Definition at line 331 of file MessageAttachments.java.
String org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.getPathName | ( | ) |
Returns the full path name of the file.
Definition at line 194 of file MessageAttachments.java.
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.