Sleuth Kit Java Bindings (JNI)
4.2
Java bindings for using The Sleuth Kit
|
Inherits org.sleuthkit.datamodel.AbstractContent.
Inherited by org.sleuthkit.datamodel.DerivedFile, org.sleuthkit.datamodel.FsContent, org.sleuthkit.datamodel.LayoutFile, org.sleuthkit.datamodel.LocalFile, and org.sleuthkit.datamodel.VirtualDirectory.
Classes | |
enum | MimeMatchEnum |
Public Member Functions | |
boolean | canRead () |
void | close () |
long | convertToImgOffset (long fileOffset) throws TskCoreException |
boolean | exists () |
long | getAtime () |
String | getAtimeAsDate () |
short | getAttrId () |
TskData.TSK_FS_ATTR_TYPE_ENUM | getAttrType () |
long | getCrtime () |
String | getCrtimeAsDate () |
long | getCtime () |
String | getCtimeAsDate () |
String | getDirFlagAsString () |
TSK_FS_NAME_TYPE_ENUM | getDirType () |
String | getDirTypeAsString () |
int | getGid () |
TskData.FileKnown | getKnown () |
String | getLocalAbsPath () |
String | getLocalPath () |
String | getMd5Hash () |
long | getMetaAddr () |
String | getMetaFlagsAsString () |
long | getMetaSeq () |
TSK_FS_META_TYPE_ENUM | getMetaType () |
String | getMetaTypeAsString () |
String | getModesAsString () |
long | getMtime () |
String | getMtimeAsDate () |
String | getNameExtension () |
String | getParentPath () |
List< TskFileRange > | getRanges () throws TskCoreException |
long | getSize () |
TskData.TSK_DB_FILES_TYPE_ENUM | getType () |
int | getUid () |
boolean | isDir () |
boolean | isDirNameFlagSet (TSK_FS_NAME_FLAG_ENUM flag) |
boolean | isFile () |
boolean | isMetaFlagSet (TSK_FS_META_FLAG_ENUM metaFlag) |
MimeMatchEnum | isMimeType (SortedSet< String > mimeTypes) |
boolean | isModeSet (TskData.TSK_FS_META_MODE_ENUM mode) |
abstract boolean | isRoot () |
boolean | isVirtual () |
List< AbstractFile > | listFiles () throws TskCoreException |
final int | read (byte[] buf, long offset, long len) throws TskCoreException |
String | toString (boolean preserveState) |
![]() | |
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) |
![]() | |
public< T > T | accept (ContentVisitor< T > v) |
long | getArtifactsCount (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException |
List< Content > | getChildren () throws TskCoreException |
List< Long > | getChildrenIds () throws TskCoreException |
ArrayList< BlackboardAttribute > | getGenInfoAttributes (BlackboardAttribute.ATTRIBUTE_TYPE attr_type) throws TskCoreException |
![]() | |
public< T > T | accept (SleuthkitItemVisitor< T > v) |
Static Public Member Functions | |
static String | createNonUniquePath (String uniquePath) |
static String | epochToTime (long epoch) |
static long | timeToEpoch (String time) |
Protected Member Functions | |
AbstractFile (SleuthkitCase db, long objId, TskData.TSK_FS_ATTR_TYPE_ENUM attrType, short attrId, String name, TskData.TSK_DB_FILES_TYPE_ENUM fileType, long metaAddr, int metaSeq, TSK_FS_NAME_TYPE_ENUM dirType, TSK_FS_META_TYPE_ENUM metaType, TSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags, long size, long ctime, long crtime, long atime, long mtime, short modes, int uid, int gid, String md5Hash, FileKnown knownState, String parentPath) | |
void | finalize () throws Throwable |
int | readInt (byte[] buf, long offset, long len) throws TskCoreException |
final int | readLocal (byte[] buf, long offset, long len) throws TskCoreException |
void | setLocalPath (String localPath, boolean isAbsolute) |
![]() | |
AbstractContent (SleuthkitCase db, long obj_id, String name) | |
Protected Attributes | |
final short | attrId |
final TskData.TSK_FS_ATTR_TYPE_ENUM | attrType |
final TSK_FS_NAME_FLAG_ENUM | dirFlag |
final TSK_FS_NAME_TYPE_ENUM | dirType |
final TskData.TSK_DB_FILES_TYPE_ENUM | fileType |
TskData.FileKnown | knownState |
String | md5Hash |
final long | metaAddr |
final 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 String | parentPath |
long | size |
final int | uid |
![]() | |
long | parentId |
Private Member Functions | |
void | loadLocalFile () throws TskCoreException |
Private Attributes | |
String | localAbsPath |
absolute path representation of the local path More... | |
volatile java.io.File | localFile |
volatile RandomAccessFile | localFileHandle |
String | localPath |
local path as stored in db tsk_files_path, is relative to the db, More... | |
boolean | localPathSet = false |
if set by setLocalPath(), reads are done on local file More... | |
List< TskFileRange > | ranges |
Static Private Attributes | |
static final ResourceBundle | bundle = ResourceBundle.getBundle("org.sleuthkit.datamodel.Bundle") |
static final Logger | logger = Logger.getLogger(AbstractFile.class.getName()) |
Additional Inherited Members | |
![]() | |
static final long | UNKNOWN_ID = -1 |
Common fields methods for objects stored in tsk_files table Abstract files are divided into subtypes defined in TSK_DB_FILES_TYPE_ENUM and further divided into files and directories
Definition at line 43 of file AbstractFile.java.
|
protected |
Initializes common fields used by AbstactFile implementations (objects in tsk_files table)
db | case / db handle where this file belongs to |
objId | object id in tsk_objects table |
attrType | |
attrId | |
name | name field of the file |
fileType | type of the file |
metaAddr | |
metaSeq | |
dirType | |
metaType | |
dirFlag | |
metaFlags | |
size | |
ctime | |
crtime | |
atime | |
mtime | |
modes | |
uid | |
gid | |
md5Hash | md5sum of the file, or null or "NULL" if not present |
knownState | knownState status of the file, or null if unknown (default) |
parentPath |
Definition at line 109 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.attrId, org.sleuthkit.datamodel.AbstractFile.attrType, org.sleuthkit.datamodel.AbstractFile.dirFlag, org.sleuthkit.datamodel.AbstractFile.dirType, org.sleuthkit.datamodel.AbstractFile.fileType, org.sleuthkit.datamodel.AbstractFile.knownState, org.sleuthkit.datamodel.AbstractFile.md5Hash, org.sleuthkit.datamodel.AbstractFile.metaAddr, org.sleuthkit.datamodel.AbstractFile.metaSeq, org.sleuthkit.datamodel.AbstractFile.metaType, org.sleuthkit.datamodel.AbstractFile.parentPath, org.sleuthkit.datamodel.AbstractFile.size, org.sleuthkit.datamodel.AbstractFile.uid, org.sleuthkit.datamodel.TskData.FileKnown.UNKNOWN, org.sleuthkit.datamodel.TskData.TSK_FS_META_FLAG_ENUM.valuesOf(), and org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.valuesOf().
Referenced by org.sleuthkit.datamodel.AbstractFile.listFiles().
boolean org.sleuthkit.datamodel.AbstractFile.canRead | ( | ) |
Check if the file exists and is readable. If non-local (e.g. within an image), always true, if local, checks if actual local path exists and is readable
Definition at line 843 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.canRead(), org.sleuthkit.datamodel.AbstractFile.loadLocalFile(), and org.sleuthkit.datamodel.AbstractFile.localFile.
Referenced by org.sleuthkit.datamodel.AbstractFile.canRead(), and org.sleuthkit.datamodel.AbstractFile.readLocal().
void org.sleuthkit.datamodel.AbstractFile.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 880 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractContent.getName(), and org.sleuthkit.datamodel.AbstractFile.getParentPath().
Referenced by org.sleuthkit.datamodel.DerivedFile.finalize(), and org.sleuthkit.datamodel.AbstractFile.finalize().
long org.sleuthkit.datamodel.AbstractFile.convertToImgOffset | ( | long | fileOffset | ) | throws TskCoreException |
Convert an internal offset to an image offset
fileOffset | the byte offset in this layout file to map |
TskCoreException | exception thrown if critical error occurred within tsk core and offset could not be converted |
Definition at line 512 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.getRanges().
|
static |
uniquePath | the unique path to an AbstractFile (or subclass) usually obtained by a call to AbstractFile.getUniquePath. |
Definition at line 574 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.SleuthkitCase.openFiles().
|
static |
Return the epoch into string in ISO 8601 dateTime format
epoch | time in seconds |
Definition at line 939 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.getAtimeAsDate(), org.sleuthkit.datamodel.AbstractFile.getCrtimeAsDate(), org.sleuthkit.datamodel.AbstractFile.getCtimeAsDate(), and org.sleuthkit.datamodel.AbstractFile.getMtimeAsDate().
boolean org.sleuthkit.datamodel.AbstractFile.exists | ( | ) |
Check if the file exists. If non-local always true, if local, checks if actual local path exists
Definition at line 822 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.exists(), org.sleuthkit.datamodel.AbstractFile.loadLocalFile(), and org.sleuthkit.datamodel.AbstractFile.localFile.
Referenced by org.sleuthkit.datamodel.AbstractFile.exists(), org.sleuthkit.datamodel.Image.imageFileExists(), and org.sleuthkit.datamodel.AbstractFile.readLocal().
|
protected |
Definition at line 899 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.close().
long org.sleuthkit.datamodel.AbstractFile.getAtime | ( | ) |
String org.sleuthkit.datamodel.AbstractFile.getAtimeAsDate | ( | ) |
Get the access time as Date (in local timezone)
Definition at line 219 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.epochToTime().
short org.sleuthkit.datamodel.AbstractFile.getAttrId | ( | ) |
Get the attribute id
Definition at line 165 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.attrId.
TskData.TSK_FS_ATTR_TYPE_ENUM org.sleuthkit.datamodel.AbstractFile.getAttrType | ( | ) |
Get the attribute type
Definition at line 156 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.attrType.
long org.sleuthkit.datamodel.AbstractFile.getCrtime | ( | ) |
String org.sleuthkit.datamodel.AbstractFile.getCrtimeAsDate | ( | ) |
Get the creation time as Date (in local timezone)
Definition at line 201 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.epochToTime().
long org.sleuthkit.datamodel.AbstractFile.getCtime | ( | ) |
String org.sleuthkit.datamodel.AbstractFile.getCtimeAsDate | ( | ) |
Get the change time as Date (in local timezone)
Definition at line 183 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.epochToTime().
String org.sleuthkit.datamodel.AbstractFile.getDirFlagAsString | ( | ) |
Definition at line 656 of file AbstractFile.java.
References org.sleuthkit.datamodel.TskData.TSK_FS_NAME_FLAG_ENUM.toString().
TSK_FS_NAME_TYPE_ENUM org.sleuthkit.datamodel.AbstractFile.getDirType | ( | ) |
Get the directory type id
Definition at line 636 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.dirType.
String org.sleuthkit.datamodel.AbstractFile.getDirTypeAsString | ( | ) |
Definition at line 640 of file AbstractFile.java.
int org.sleuthkit.datamodel.AbstractFile.getGid | ( | ) |
TskData.FileKnown org.sleuthkit.datamodel.AbstractFile.getKnown | ( | ) |
Get "knownState" file status - after running a HashDB ingest on it As marked by a knownState file database, such as NSRL
Definition at line 436 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.knownState.
String org.sleuthkit.datamodel.AbstractFile.getLocalAbsPath | ( | ) |
Get local absolute path of the file, if localPath has been set
Definition at line 812 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.localAbsPath.
String org.sleuthkit.datamodel.AbstractFile.getLocalPath | ( | ) |
Get local relative to case db path of the file
Definition at line 803 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.localPath.
String org.sleuthkit.datamodel.AbstractFile.getMd5Hash | ( | ) |
Get the md5 hash value as calculated, if present
Definition at line 415 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.md5Hash.
long org.sleuthkit.datamodel.AbstractFile.getMetaAddr | ( | ) |
Get the file meta address
Definition at line 264 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.metaAddr.
Referenced by org.sleuthkit.datamodel.FsContent.isRoot().
String org.sleuthkit.datamodel.AbstractFile.getMetaFlagsAsString | ( | ) |
Definition at line 663 of file AbstractFile.java.
References org.sleuthkit.datamodel.TskData.TSK_FS_META_FLAG_ENUM.ALLOC, and org.sleuthkit.datamodel.TskData.TSK_FS_META_FLAG_ENUM.UNALLOC.
long org.sleuthkit.datamodel.AbstractFile.getMetaSeq | ( | ) |
Get the file meta address sequence. Only useful with NTFS. Incremented each time a structure is re-allocated.
Definition at line 274 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.metaSeq.
TSK_FS_META_TYPE_ENUM org.sleuthkit.datamodel.AbstractFile.getMetaType | ( | ) |
Get the meta data type
Definition at line 623 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.metaType.
String org.sleuthkit.datamodel.AbstractFile.getMetaTypeAsString | ( | ) |
Definition at line 627 of file AbstractFile.java.
References org.sleuthkit.datamodel.TskData.TSK_FS_META_TYPE_ENUM.toString().
String org.sleuthkit.datamodel.AbstractFile.getModesAsString | ( | ) |
Get the file's mode as a user-displayable string
Definition at line 283 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.modes, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.toInt(), org.sleuthkit.datamodel.TskData.TSK_FS_META_TYPE_ENUM.toString(), org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_IRGRP, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_IROTH, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_IRUSR, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_ISGID, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_ISUID, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_ISVTX, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_IWGRP, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_IWOTH, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_IWUSR, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_IXGRP, org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_IXOTH, and org.sleuthkit.datamodel.TskData.TSK_FS_META_MODE_ENUM.TSK_FS_META_MODE_IXUSR.
long org.sleuthkit.datamodel.AbstractFile.getMtime | ( | ) |
String org.sleuthkit.datamodel.AbstractFile.getMtimeAsDate | ( | ) |
Get the modified time as Date (in local timezone)
Definition at line 237 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.epochToTime().
String org.sleuthkit.datamodel.AbstractFile.getNameExtension | ( | ) |
Figures out the extension from the filename, if there is one. We assume that extensions only have ASCII alphanumeric chars
Definition at line 447 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractContent.getName().
String org.sleuthkit.datamodel.AbstractFile.getParentPath | ( | ) |
Get path of the parent of this file
Definition at line 482 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.parentPath.
Referenced by org.sleuthkit.datamodel.AbstractFile.close(), org.sleuthkit.datamodel.OSUtility.getOSInfoInternal(), and org.sleuthkit.datamodel.FsContent.getUniquePath().
List<TskFileRange> org.sleuthkit.datamodel.AbstractFile.getRanges | ( | ) | throws TskCoreException |
Gets file ranges associated with the file. File ranges are objects in tsk_file_layout table Any file type (especially unallocated) may have 1 or more block ranges associated with it
TskCoreException | exception thrown if critical error occurred within tsk core |
Definition at line 495 of file AbstractFile.java.
References org.sleuthkit.datamodel.SleuthkitCase.getFileRanges(), org.sleuthkit.datamodel.AbstractContent.getId(), org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase(), and org.sleuthkit.datamodel.AbstractFile.ranges.
Referenced by org.sleuthkit.datamodel.LayoutFile.calcSize(), org.sleuthkit.datamodel.AbstractFile.convertToImgOffset(), org.sleuthkit.datamodel.LayoutFile.getNumParts(), and org.sleuthkit.datamodel.LayoutFile.readInt().
long org.sleuthkit.datamodel.AbstractFile.getSize | ( | ) |
Get size of the file
Implements org.sleuthkit.datamodel.Content.
Definition at line 473 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.size.
TskData.TSK_DB_FILES_TYPE_ENUM org.sleuthkit.datamodel.AbstractFile.getType | ( | ) |
Gets type of the abstract file as defined in TSK_DB_FILES_TYPE_ENUM
Definition at line 147 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.fileType.
int org.sleuthkit.datamodel.AbstractFile.getUid | ( | ) |
Get the user id
Definition at line 246 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.uid.
boolean org.sleuthkit.datamodel.AbstractFile.isDir | ( | ) |
Is this object a directory
Definition at line 557 of file AbstractFile.java.
References org.sleuthkit.datamodel.TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_DIR.
Referenced by org.sleuthkit.datamodel.AbstractFile.readLocal().
boolean org.sleuthkit.datamodel.AbstractFile.isDirNameFlagSet | ( | TSK_FS_NAME_FLAG_ENUM | flag | ) |
flag | the TSK_FS_NAME_FLAG_ENUM to check |
Definition at line 648 of file AbstractFile.java.
boolean org.sleuthkit.datamodel.AbstractFile.isFile | ( | ) |
Is this object a file
Definition at line 547 of file AbstractFile.java.
References org.sleuthkit.datamodel.TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.
boolean org.sleuthkit.datamodel.AbstractFile.isMetaFlagSet | ( | TSK_FS_META_FLAG_ENUM | metaFlag | ) |
metaFlag | the TSK_FS_META_FLAG_ENUM to check |
Definition at line 677 of file AbstractFile.java.
MimeMatchEnum org.sleuthkit.datamodel.AbstractFile.isMimeType | ( | SortedSet< String > | mimeTypes | ) |
Determines if this file's type is one of the ones passed in. Uses the blackboard attribute for file type.
mimeTypes | Set of file types to compare against |
Definition at line 980 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.MimeMatchEnum.FALSE, org.sleuthkit.datamodel.AbstractContent.getGenInfoAttributes(), org.sleuthkit.datamodel.AbstractFile.MimeMatchEnum.TRUE, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_FILE_TYPE_SIG, and org.sleuthkit.datamodel.AbstractFile.MimeMatchEnum.UNDEFINED.
boolean org.sleuthkit.datamodel.AbstractFile.isModeSet | ( | TskData.TSK_FS_META_MODE_ENUM | mode | ) |
Definition at line 395 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.modes.
|
abstract |
Is this a root of a file system
boolean org.sleuthkit.datamodel.AbstractFile.isVirtual | ( | ) |
is this a virtual file or directory
Definition at line 536 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.fileType, org.sleuthkit.datamodel.TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_VIRT, org.sleuthkit.datamodel.TskData.TSK_FS_NAME_TYPE_ENUM.VIRT, and org.sleuthkit.datamodel.TskData.TSK_DB_FILES_TYPE_ENUM.VIRTUAL_DIR.
List<AbstractFile> org.sleuthkit.datamodel.AbstractFile.listFiles | ( | ) | throws TskCoreException |
org.sleuthkit.datamodel.TskCoreException |
Definition at line 603 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.AbstractFile(), and org.sleuthkit.datamodel.Content.getChildren().
|
private |
Lazy load local file handle
Definition at line 861 of file AbstractFile.java.
References org.sleuthkit.datamodel.File.File(), and org.sleuthkit.datamodel.AbstractFile.localFile.
Referenced by org.sleuthkit.datamodel.AbstractFile.canRead(), org.sleuthkit.datamodel.AbstractFile.exists(), and org.sleuthkit.datamodel.AbstractFile.readLocal().
final int org.sleuthkit.datamodel.AbstractFile.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 682 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.readInt(), and org.sleuthkit.datamodel.AbstractFile.readLocal().
|
protected |
Internal custom read (non-local) method that child classes can implement
buf | buffer to read into |
offset | start reading position in the file |
len | number of bytes to read |
TskCoreException | exception thrown when file could not be read |
Definition at line 702 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.read().
|
protected |
Local file path read support
buf | buffer to read into |
offset | start reading position in the file |
len | number of bytes to read |
TskCoreException | exception thrown when file could not be read |
Definition at line 715 of file AbstractFile.java.
References org.sleuthkit.datamodel.AbstractFile.canRead(), org.sleuthkit.datamodel.AbstractFile.exists(), org.sleuthkit.datamodel.AbstractFile.isDir(), org.sleuthkit.datamodel.AbstractFile.loadLocalFile(), org.sleuthkit.datamodel.AbstractFile.localAbsPath, and org.sleuthkit.datamodel.AbstractFile.localFile.
Referenced by org.sleuthkit.datamodel.AbstractFile.read().
|
protected |
Set local path for the file, as stored in db tsk_files_path, relative to the case db path or an absolute path. When set, subsequent invocations of read() will read the file in the local path.
localPath | local path to be set |
isAbsolute | true if the path is absolute, false if relative to the case db |
Definition at line 781 of file AbstractFile.java.
References org.sleuthkit.datamodel.SleuthkitCase.getDbDirPath(), org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase(), and org.sleuthkit.datamodel.AbstractFile.localPath.
Referenced by org.sleuthkit.datamodel.DerivedFile.DerivedFile().
|
static |
Convert from ISO 8601 formatted date time string to epoch time in seconds
time | formatted date time string as "yyyy-MM-dd HH:mm:ss" |
Definition at line 953 of file AbstractFile.java.
String org.sleuthkit.datamodel.AbstractFile.toString | ( | boolean | preserveState | ) |
|
protected |
Definition at line 54 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), org.sleuthkit.datamodel.AbstractFile.getAttrId(), and org.sleuthkit.datamodel.FsContent.loadFileHandle().
|
protected |
Definition at line 55 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), org.sleuthkit.datamodel.AbstractFile.getAttrType(), org.sleuthkit.datamodel.FsContent.loadFileHandle(), and org.sleuthkit.datamodel.AbstractFile.toString().
|
staticprivate |
Definition at line 78 of file AbstractFile.java.
|
protected |
Definition at line 48 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), and org.sleuthkit.datamodel.LocalFile.LocalFile().
|
protected |
Definition at line 46 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), org.sleuthkit.datamodel.AbstractFile.getDirType(), and org.sleuthkit.datamodel.LocalFile.LocalFile().
|
protected |
Definition at line 45 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), org.sleuthkit.datamodel.AbstractFile.getType(), org.sleuthkit.datamodel.AbstractFile.isVirtual(), org.sleuthkit.datamodel.LocalFile.LocalFile(), and org.sleuthkit.datamodel.AbstractFile.toString().
|
protected |
knownState status in database
Definition at line 72 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), org.sleuthkit.datamodel.AbstractFile.getKnown(), org.sleuthkit.datamodel.LocalFile.LocalFile(), and org.sleuthkit.datamodel.AbstractFile.toString().
|
private |
absolute path representation of the local path
Definition at line 60 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.getLocalAbsPath(), and org.sleuthkit.datamodel.AbstractFile.readLocal().
|
private |
Definition at line 62 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.canRead(), org.sleuthkit.datamodel.AbstractFile.exists(), org.sleuthkit.datamodel.AbstractFile.loadLocalFile(), org.sleuthkit.datamodel.AbstractFile.readLocal(), and org.sleuthkit.datamodel.AbstractFile.toString().
|
private |
Definition at line 61 of file AbstractFile.java.
|
private |
local path as stored in db tsk_files_path, is relative to the db,
Definition at line 59 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.getLocalPath(), org.sleuthkit.datamodel.LocalFile.LocalFile(), and org.sleuthkit.datamodel.AbstractFile.setLocalPath().
|
private |
if set by setLocalPath(), reads are done on local file
Definition at line 58 of file AbstractFile.java.
|
staticprivate |
Definition at line 77 of file AbstractFile.java.
|
protected |
Definition at line 76 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), org.sleuthkit.datamodel.AbstractFile.getMd5Hash(), and org.sleuthkit.datamodel.LocalFile.LocalFile().
|
protected |
|
protected |
Definition at line 49 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.LocalFile.LocalFile().
|
protected |
Definition at line 52 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), and org.sleuthkit.datamodel.AbstractFile.getMetaSeq().
|
protected |
Definition at line 47 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), org.sleuthkit.datamodel.AbstractFile.getMetaType(), and org.sleuthkit.datamodel.LocalFile.LocalFile().
|
protected |
Definition at line 56 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.getModesAsString(), org.sleuthkit.datamodel.AbstractFile.isModeSet(), and org.sleuthkit.datamodel.AbstractFile.toString().
|
protected |
Definition at line 68 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), org.sleuthkit.datamodel.AbstractFile.getParentPath(), and org.sleuthkit.datamodel.LocalFile.LocalFile().
|
private |
Definition at line 64 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.getRanges().
|
protected |
Definition at line 50 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), org.sleuthkit.datamodel.AbstractFile.getSize(), org.sleuthkit.datamodel.LocalFile.LocalFile(), and org.sleuthkit.datamodel.FsContent.readInt().
|
protected |
Definition at line 53 of file AbstractFile.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.AbstractFile(), and org.sleuthkit.datamodel.AbstractFile.getUid().
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.