|
Sleuth Kit Java Bindings (JNI) 4.14.0
Java bindings for using The Sleuth Kit
|
Inherits org.sleuthkit.datamodel.AbstractFile.
Protected Member Functions | |
| int | readInt (byte[] buf, long offset, long len) throws TskCoreException |
| Protected Member Functions inherited from org.sleuthkit.datamodel.AbstractFile | |
| void | finalize () throws Throwable |
| 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) | |
A representation of a layout file that has been added to a case. Layout files are not file system files, but "virtual" files created from blocks of data (e.g. unallocated) that are treated as files for convenience and uniformity.
Because layout files are not real file system files, they only utilize a subset of meta-data attributes. A layout file normally contains one or more entry in tsk_file_layout table that define ordered byte block ranges, with respect to the image.
The class also supports reads of layout files, reading blocks across ranges in a sequence.
Definition at line 44 of file LayoutFile.java.
| void org.sleuthkit.datamodel.LayoutFile.close | ( | ) |
Does nothing, a layout file cannot be directly opened, read, or closed. Use the readInt method to get layout file content.
Reimplemented from org.sleuthkit.datamodel.AbstractFile.
Definition at line 142 of file LayoutFile.java.
| int org.sleuthkit.datamodel.LayoutFile.getNumParts | ( | ) |
Gets the number of file layout ranges associated with this layout file.
Definition at line 116 of file LayoutFile.java.
References org.sleuthkit.datamodel.AbstractContent.getId(), and org.sleuthkit.datamodel.AbstractFile.getRanges().
| boolean org.sleuthkit.datamodel.LayoutFile.isRoot | ( | ) |
Indicates whether or not this layout file is the root of a file system, always returns false.
Reimplemented from org.sleuthkit.datamodel.AbstractFile.
Definition at line 133 of file LayoutFile.java.
|
protected |
Reads bytes from the layout ranges associated with this file.
| 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.
Definition at line 157 of file LayoutFile.java.
References org.sleuthkit.datamodel.AbstractFile.getDataSource(), org.sleuthkit.datamodel.Image.getImageHandle(), org.sleuthkit.datamodel.AbstractFile.getRanges(), and org.sleuthkit.datamodel.AbstractFile.size.
| String org.sleuthkit.datamodel.LayoutFile.toString | ( | boolean | preserveState | ) |
Provides a string representation of this file.
| preserveState | True if state should be included in the string representation of this object. |
Reimplemented from org.sleuthkit.datamodel.AbstractFile.
Definition at line 256 of file LayoutFile.java.
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.