19 package org.sleuthkit.autopsy.datasourceprocessors;
21 import java.nio.file.Path;
22 import java.util.Collection;
23 import java.util.HashMap;
24 import java.util.List;
26 import java.util.stream.Collectors;
27 import org.openide.util.Lookup;
52 Map<AutoIngestDataSourceProcessor, Integer> validDataSourceProcessorsMap =
new HashMap<>();
54 int confidence = processor.canProcess(dataSourcePath);
56 validDataSourceProcessorsMap.put(processor, confidence);
60 return validDataSourceProcessorsMap;
101 Map<AutoIngestDataSourceProcessor, Integer> validDataSourceProcessorsMap =
getDataSourceProcessorForFile(dataSourcePath, processorCandidates);
115 List<AutoIngestDataSourceProcessor> validDataSourceProcessors = validDataSourceProcessorsMap.entrySet().stream()
117 .map(Map.Entry::getKey)
118 .collect(Collectors.toList());
120 return validDataSourceProcessors;
static List< AutoIngestDataSourceProcessor > getOrderedListOfDataSourceProcessors(Path dataSourcePath)
static List< AutoIngestDataSourceProcessor > orderDataSourceProcessorsByConfidence(Map< AutoIngestDataSourceProcessor, Integer > validDataSourceProcessorsMap)
static Map< AutoIngestDataSourceProcessor, Integer > getDataSourceProcessorForFile(Path dataSourcePath, Collection<?extends AutoIngestDataSourceProcessor > processorCandidates)
static List< AutoIngestDataSourceProcessor > getOrderedListOfDataSourceProcessors(Path dataSourcePath, Collection<?extends AutoIngestDataSourceProcessor > processorCandidates)
DataSourceProcessorUtility()