19 package org.sleuthkit.autopsy.coreutils;
 
   22 import java.io.IOException;
 
   23 import java.nio.file.Path;
 
   24 import java.text.MessageFormat;
 
   25 import java.util.logging.Level;
 
   26 import org.apache.commons.lang3.StringUtils;
 
   61     public static boolean imageHasFileSystem(Path dataSourcePath, String password) 
throws IOException {
 
   64             if (openImageResult.wasSuccessful()) {
 
   67                 String message = MessageFormat.format(
"An error occurred while opening {0}: {1}",
 
   68                         dataSourcePath.toString(),
 
   69                         openImageResult == null || StringUtils.isBlank(openImageResult.getMessage())
 
   71                         : openImageResult.getMessage());
 
   72                 logger.log(Level.INFO, message);
 
   75         } 
catch (Throwable ex) {
 
   76             String message = 
"An error occurred while opening " + dataSourcePath.toString();
 
   77             logger.log(Level.WARNING, message);
 
static boolean imageHasFileSystem(Path dataSourcePath, String password)
static boolean isImageSupported(String imagePath)
static TestOpenImageResult testOpenImage(String imagePath, String password)
static boolean imageHasFileSystem(Path dataSourcePath)
synchronized static Logger getLogger(String name)
static final Logger logger