Package org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle

Examples of org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess


    try {
      SleuthkitCase sk = SleuthkitCase.newCase(imagePath + ".db");

      // initialize the case with an image
      String timezone = "";
      AddImageProcess process = sk.makeAddImageProcess(timezone, true, false);
      ArrayList<String> paths = new ArrayList<String>();
      paths.add(imagePath);
      try {
        process.run(paths.toArray(new String[paths.size()]));
      } catch (TskDataException ex) {
        Logger.getLogger(Sample.class.getName()).log(Level.SEVERE, null, ex);
      }
      process.commit();
     
      // print out all the images found, and their children
      List<Image> images = sk.getImages();
      for (Image image : images) {
        System.out.println("Found image: " + image.getName());
View Full Code Here

TOP

Related Classes of org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.