Sleuth Kit Java Bindings (JNI)
4.2
Java bindings for using The Sleuth Kit
|
Inherits org.sleuthkit.datamodel.AbstractContent.
Public Member Functions | |
void | close () |
void | finalize () throws Throwable |
List< Content > | getChildren () throws TskCoreException |
List< Long > | getChildrenIds () throws TskCoreException |
Content | getDataSource () |
List< FileSystem > | getFileSystems () throws TskCoreException |
synchronized long | getImageHandle () throws TskCoreException |
String | getMd5 () |
String[] | getPaths () |
long | getSize () |
long | getSsize () |
String | getTimeZone () |
TskData.TSK_IMG_TYPE_ENUM | getType () |
String | getUniquePath () throws TskCoreException |
List< Volume > | getVolumes () throws TskCoreException |
List< VolumeSystem > | getVolumeSystems () throws TskCoreException |
Boolean | imageFileExists () |
int | read (byte[] buf, long offset, long len) throws TskCoreException |
String | toString (boolean preserveState) |
String | verifyImageSize () |
![]() | |
boolean | equals (Object obj) |
ArrayList< BlackboardArtifact > | getAllArtifacts () throws TskCoreException |
long | getAllArtifactsCount () throws TskCoreException |
ArrayList< BlackboardArtifact > | getArtifacts (String artifactTypeName) throws TskCoreException |
ArrayList< BlackboardArtifact > | getArtifacts (int artifactTypeID) throws TskCoreException |
ArrayList< BlackboardArtifact > | getArtifacts (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException |
long | getArtifactsCount (String artifactTypeName) throws TskCoreException |
long | getArtifactsCount (int artifactTypeID) throws TskCoreException |
long | getArtifactsCount (ARTIFACT_TYPE type) throws TskCoreException |
int | getChildrenCount () throws TskCoreException |
Content | getDataSource () throws TskCoreException |
BlackboardArtifact | getGenInfoArtifact () throws TskCoreException |
BlackboardArtifact | getGenInfoArtifact (boolean create) throws TskCoreException |
ArrayList< BlackboardAttribute > | getGenInfoAttributes (ATTRIBUTE_TYPE attr_type) throws TskCoreException |
Set< String > | getHashSetNames () throws TskCoreException |
long | getId () |
String | getName () |
synchronized Content | getParent () throws TskCoreException |
SleuthkitCase | getSleuthkitCase () |
synchronized String | getUniquePath () throws TskCoreException |
boolean | hasChildren () throws TskCoreException |
int | hashCode () |
BlackboardArtifact | newArtifact (int artifactTypeID) throws TskCoreException |
BlackboardArtifact | newArtifact (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException |
String | toString () |
String | toString (boolean preserveState) |
![]() | |
long | getArtifactsCount (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException |
ArrayList< BlackboardAttribute > | getGenInfoAttributes (BlackboardAttribute.ATTRIBUTE_TYPE attr_type) throws TskCoreException |
Protected Member Functions | |
Image (SleuthkitCase db, long obj_id, long type, long ssize, String name, String[] paths, String timezone, String md5) throws TskCoreException | |
![]() | |
AbstractContent (SleuthkitCase db, long obj_id, String name) | |
Private Attributes | |
volatile long | imageHandle = 0 |
String[] | paths |
String | timezone |
long | type |
Static Private Attributes | |
static ResourceBundle | bundle = ResourceBundle.getBundle("org.sleuthkit.datamodel.Bundle") |
Additional Inherited Members | |
![]() | |
static final long | UNKNOWN_ID = -1 |
![]() | |
long | parentId |
Represents a disk image file, stored in tsk_image_info. Populated based on data in database.
Caches internal tsk image handle and reuses it for reads
Definition at line 36 of file Image.java.
|
protected |
constructor most inputs are from the database
db | database object |
obj_id | |
type | |
ssize | Sector Size |
name | Display Name |
paths | |
timezone | |
md5 |
Definition at line 57 of file Image.java.
References org.sleuthkit.datamodel.AbstractContent.db, org.sleuthkit.datamodel.AbstractContent.name, org.sleuthkit.datamodel.Image.paths, org.sleuthkit.datamodel.Image.timezone, and org.sleuthkit.datamodel.Image.type.
void org.sleuthkit.datamodel.Image.close | ( | ) |
Free native resources after read is done on the Content object. After closing, read can be called again on the same Content object, which should result in re-opening of new native resources.
Implements org.sleuthkit.datamodel.Content.
Definition at line 86 of file Image.java.
void org.sleuthkit.datamodel.Image.finalize | ( | ) | throws Throwable |
Definition at line 91 of file Image.java.
References org.sleuthkit.datamodel.SleuthkitJNI.closeImg().
List<Content> org.sleuthkit.datamodel.Image.getChildren | ( | ) | throws TskCoreException |
Gets the child content objects of this content.
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 222 of file Image.java.
References org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase().
Referenced by org.sleuthkit.datamodel.Image.getVolumes(), and org.sleuthkit.datamodel.Image.getVolumeSystems().
List<Long> org.sleuthkit.datamodel.Image.getChildrenIds | ( | ) | throws TskCoreException |
Gets the child content ids of this content.
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 227 of file Image.java.
References org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase().
Content org.sleuthkit.datamodel.Image.getDataSource | ( | ) |
Get the root data source of this content (image, virtual directory, etc.)
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 81 of file Image.java.
List<FileSystem> org.sleuthkit.datamodel.Image.getFileSystems | ( | ) | throws TskCoreException |
TskCoreException |
Definition at line 196 of file Image.java.
References org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase().
Referenced by org.sleuthkit.datamodel.Image.verifyImageSize().
synchronized long org.sleuthkit.datamodel.Image.getImageHandle | ( | ) | throws TskCoreException |
Get the handle to the sleuthkit image info object
Definition at line 72 of file Image.java.
References org.sleuthkit.datamodel.Image.imageHandle, and org.sleuthkit.datamodel.SleuthkitJNI.openImage().
Referenced by org.sleuthkit.datamodel.VolumeSystem.getVolumeSystemHandle(), org.sleuthkit.datamodel.Image.read(), and org.sleuthkit.datamodel.LayoutFile.readInt().
String org.sleuthkit.datamodel.Image.getMd5 | ( | ) |
gets the md5 hash value
Definition at line 307 of file Image.java.
String [] org.sleuthkit.datamodel.Image.getPaths | ( | ) |
Get the image path
Definition at line 152 of file Image.java.
References org.sleuthkit.datamodel.Image.paths.
long org.sleuthkit.datamodel.Image.getSize | ( | ) |
Get the (reported) size of the content object and, in theory, how much you should be able to read from it. In some cases, data corruption may mean that you cannot read this much data.
Implements org.sleuthkit.datamodel.Content.
Definition at line 109 of file Image.java.
References org.sleuthkit.datamodel.SleuthkitJNI.findDeviceSize(), and org.sleuthkit.datamodel.AbstractContent.getName().
long org.sleuthkit.datamodel.Image.getSsize | ( | ) |
String org.sleuthkit.datamodel.Image.getTimeZone | ( | ) |
Get the timezone set for the image
Definition at line 207 of file Image.java.
References org.sleuthkit.datamodel.Image.timezone.
TskData.TSK_IMG_TYPE_ENUM org.sleuthkit.datamodel.Image.getType | ( | ) |
Get the image type
Definition at line 129 of file Image.java.
References org.sleuthkit.datamodel.TskData.TSK_IMG_TYPE_ENUM.valueOf().
String org.sleuthkit.datamodel.Image.getUniquePath | ( | ) | throws TskCoreException |
Implements org.sleuthkit.datamodel.Content.
Definition at line 143 of file Image.java.
References org.sleuthkit.datamodel.AbstractContent.getName().
List<Volume> org.sleuthkit.datamodel.Image.getVolumes | ( | ) | throws TskCoreException |
TskCoreException |
Definition at line 177 of file Image.java.
References org.sleuthkit.datamodel.Image.getChildren().
List<VolumeSystem> org.sleuthkit.datamodel.Image.getVolumeSystems | ( | ) | throws TskCoreException |
TskCoreException |
Definition at line 160 of file Image.java.
References org.sleuthkit.datamodel.Image.getChildren().
Referenced by org.sleuthkit.datamodel.Image.verifyImageSize().
Boolean org.sleuthkit.datamodel.Image.imageFileExists | ( | ) |
Test if the image represented by this object exists on disk.
Definition at line 241 of file Image.java.
References org.sleuthkit.datamodel.AbstractFile.exists().
Referenced by org.sleuthkit.datamodel.FsContent.readInt().
int org.sleuthkit.datamodel.Image.read | ( | byte[] | buf, |
long | offset, | ||
long | len | ||
) | throws TskCoreException |
Reads data that this content object is associated with (file contents, volume contents, etc.).
buf | a character array of data (in bytes) to copy read data to |
offset | byte offset in the content to start reading from |
len | number of bytes to read into buf. |
TskCoreException | if critical error occurred during read in the tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 103 of file Image.java.
References org.sleuthkit.datamodel.Image.getImageHandle(), and org.sleuthkit.datamodel.SleuthkitJNI.readImg().
Referenced by org.sleuthkit.datamodel.Image.verifyImageSize().
String org.sleuthkit.datamodel.Image.toString | ( | boolean | preserveState | ) |
Definition at line 232 of file Image.java.
String org.sleuthkit.datamodel.Image.verifyImageSize | ( | ) |
Perform some sanity checks on the bounds of the image contents to determine if we could be missing some pieces of the image.
Definition at line 257 of file Image.java.
References org.sleuthkit.datamodel.Image.getFileSystems(), org.sleuthkit.datamodel.Image.getVolumeSystems(), and org.sleuthkit.datamodel.Image.read().
|
staticprivate |
Definition at line 43 of file Image.java.
|
private |
Definition at line 41 of file Image.java.
Referenced by org.sleuthkit.datamodel.Image.getImageHandle().
|
private |
Definition at line 40 of file Image.java.
Referenced by org.sleuthkit.datamodel.Image.getPaths(), and org.sleuthkit.datamodel.Image.Image().
|
private |
Definition at line 42 of file Image.java.
Referenced by org.sleuthkit.datamodel.Image.getTimeZone(), and org.sleuthkit.datamodel.Image.Image().
|
private |
Definition at line 39 of file Image.java.
Referenced by org.sleuthkit.datamodel.Image.Image().
Copyright © 2011-2015 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.