|
Sleuth Kit Java Bindings (JNI) 4.14.0
Java bindings for using The Sleuth Kit
|
Inherits org.sleuthkit.datamodel.AbstractFile.
Inherited by org.sleuthkit.datamodel.Directory, org.sleuthkit.datamodel.File, and org.sleuthkit.datamodel.SlackFile.
Protected Member Functions | |
| synchronized int | readInt (byte[] buf, long offset, long len) throws TskCoreException |
| Protected Member Functions inherited from org.sleuthkit.datamodel.AbstractFile | |
| final int | readLocal (byte[] buf, long offset, long len) throws TskCoreException |
| void | setLocalPath (String localPath, boolean isAbsolute) |
| Protected Member Functions inherited from org.sleuthkit.datamodel.AbstractContent | |
| AbstractContent (SleuthkitCase db, long obj_id, String name) | |
Protected Attributes | |
| volatile long | fileHandle = 0 |
| Protected Attributes inherited from org.sleuthkit.datamodel.AbstractFile | |
| final long | atime |
| final int | attrId |
| final TskData.TSK_FS_ATTR_TYPE_ENUM | attrType |
| final long | crtime |
| final long | ctime |
| TSK_FS_NAME_FLAG_ENUM | dirFlag |
| final TSK_FS_NAME_TYPE_ENUM | dirType |
| final Long | fileSystemObjectId |
| final TskData.TSK_DB_FILES_TYPE_ENUM | fileType |
| final int | gid |
| TskData.FileKnown | knownState |
| String | md5Hash |
| final long | metaAddr |
| Set< TSK_FS_META_FLAG_ENUM > | metaFlags |
| final int | metaSeq |
| final TSK_FS_META_TYPE_ENUM | metaType |
| final Set< TskData.TSK_FS_META_MODE_ENUM > | modes |
| final long | mtime |
| final String | parentPath |
| String | sha1Hash |
| String | sha256Hash |
| long | size |
| final int | uid |
| Protected Attributes inherited from org.sleuthkit.datamodel.AbstractContent | |
| long | parentId |
Additional Inherited Members | |
| Static Public Member Functions inherited from org.sleuthkit.datamodel.AbstractFile | |
| static String | createNonUniquePath (String uniquePath) |
| static String | epochToTime (long epoch) |
| static String | epochToTime (long epoch, TimeZone tzone) |
| static long | timeToEpoch (String time) |
| Static Public Attributes inherited from org.sleuthkit.datamodel.AbstractContent | |
| static final long | UNKNOWN_ID = -1 |
An abstract base class for representations of a file system files or directories that have been added to a case.
TODO move common getters to AbstractFile class
Definition at line 40 of file FsContent.java.
| synchronized void org.sleuthkit.datamodel.FsContent.close | ( | ) |
Closes the JNI file handle for this file or directory.
Reimplemented from org.sleuthkit.datamodel.AbstractFile.
Definition at line 263 of file FsContent.java.
References close(), org.sleuthkit.datamodel.SleuthkitJNI.closeFile(), and fileHandle.
Referenced by close(), and finalize().
| void org.sleuthkit.datamodel.FsContent.finalize | ( | ) | throws Throwable |
Closes the JNI file handle for this file or directory when the FsContent object is garbage-collected.
Reimplemented from org.sleuthkit.datamodel.AbstractFile.
Definition at line 275 of file FsContent.java.
References close().
| Content org.sleuthkit.datamodel.FsContent.getDataSource | ( | ) | throws TskCoreException |
Gets the data source (image) for this file or directory directory.
| TskCoreException | if there is an error querying the case database. |
Reimplemented from org.sleuthkit.datamodel.AbstractFile.
Definition at line 228 of file FsContent.java.
References org.sleuthkit.datamodel.AbstractContent.getDataSource(), and org.sleuthkit.datamodel.AbstractFile.getFileSystem().
Referenced by readInt().
| long org.sleuthkit.datamodel.FsContent.getFileSystemId | ( | ) |
Get the object id of the parent file system of this file or directory.
Definition at line 138 of file FsContent.java.
References org.sleuthkit.datamodel.AbstractFile.getFileSystemObjectId().
Referenced by toString().
| synchronized List< String > org.sleuthkit.datamodel.FsContent.getMetaDataText | ( | ) | throws TskCoreException |
Gets a text-based description of the file's metadata. This is the same content as the TSK istat tool produces and is different information for each type of file system.
| TskCoreException |
Definition at line 241 of file FsContent.java.
References fileHandle, org.sleuthkit.datamodel.SleuthkitJNI.getFileMetaDataText(), and org.sleuthkit.datamodel.AbstractFile.metaAddr.
| AbstractFile org.sleuthkit.datamodel.FsContent.getParentDirectory | ( | ) | throws TskCoreException |
Gets the parent directory of this file or directory.
| TskCoreException | if there was an error querying the case database. |
Definition at line 216 of file FsContent.java.
References org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase().
| boolean org.sleuthkit.datamodel.FsContent.isRoot | ( | ) |
Is this a root of a file system
Reimplemented from org.sleuthkit.datamodel.AbstractFile.
Definition at line 198 of file FsContent.java.
References org.sleuthkit.datamodel.AbstractFile.getFileSystem(), org.sleuthkit.datamodel.AbstractFile.getMetaAddr(), and org.sleuthkit.datamodel.FileSystem.getRoot_inum().
|
protected |
Reads bytes from this file or directory.
| buf | Buffer to read into. |
| offset | Start position in the file. |
| len | Number of bytes to read. |
| TskCoreException | if there is a problem reading the file. |
Reimplemented from org.sleuthkit.datamodel.AbstractFile.
Reimplemented in org.sleuthkit.datamodel.SlackFile.
Definition at line 182 of file FsContent.java.
References fileHandle, getDataSource(), org.sleuthkit.datamodel.SleuthkitJNI.readFile(), readInt(), and org.sleuthkit.datamodel.AbstractFile.size.
Referenced by readInt().
| String org.sleuthkit.datamodel.FsContent.toString | ( | boolean | preserveState | ) |
Provides a string representation of this file or directory.
| preserveState | True if state should be included in the string representation of this object. |
Reimplemented from org.sleuthkit.datamodel.AbstractFile.
Reimplemented in org.sleuthkit.datamodel.Directory, org.sleuthkit.datamodel.File, and org.sleuthkit.datamodel.SlackFile.
Definition at line 290 of file FsContent.java.
References getFileSystemId(), and org.sleuthkit.datamodel.AbstractFile.getUniquePath().
|
protected |
Definition at line 51 of file FsContent.java.
Referenced by close(), getMetaDataText(), readInt(), and org.sleuthkit.datamodel.SlackFile.readInt().
Copyright © 2011-2024 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.