19 package org.sleuthkit.datamodel.Examples;
21 import java.lang.reflect.Array;
22 import java.util.ArrayList;
23 import java.util.List;
24 import java.util.logging.Level;
25 import java.util.logging.Logger;
39 public static void run(String imagePath) {
46 ArrayList<String> paths =
new ArrayList<String>();
49 process.
run(paths.toArray(
new String[paths.size()]));
51 Logger.getLogger(
Sample.class.getName()).log(Level.SEVERE, null, ex);
57 for (
Image image : images) {
58 System.out.println(
"Found image: " + image.getName());
59 System.out.println(
"There are " + image.getChildren().size() +
" children.");
61 System.out.println(
'"' + content.getName() +
'"' +
" is a child of " + image.getName());
68 System.out.println(
"Found text file: " + file.getName());
72 System.out.println(
"Exception caught: " + e.getMessage());
78 public static void usage(String error) {
79 System.out.println(
"Usage: ant -Dimage:{image string} run-sample");
80 if (error.contains(
"deleted first")) {
81 System.out.println(
"A database for the image already exists. Delete it to run this sample again.");
82 }
else if (error.contains(
"unable to open database")) {
83 System.out.println(
"Image must be encapsulated by double quotes. Ex: ant -Dimage=\"C:\\Users\\You\\image.E01\" run-sample");
87 public static void main(String[] args) {
AddImageProcess makeAddImageProcess(String timezone, boolean processUnallocSpace, boolean noFatFsOrphans)
static void run(String imagePath)
void run(String[] imgPath)
synchronized long commit()
static void main(String[] args)
static void usage(String error)
List< Image > getImages()
List< Content > getChildren()
List< AbstractFile > findAllFilesWhere(String sqlWhereClause)
static SleuthkitCase newCase(String dbPath)