Go to the documentation of this file.
19package org.sleuthkit.autopsy.modules.hashdatabase;
21import java.util.Collection;
23import org.openide.nodes.ChildFactory;
24import org.openide.nodes.Node;
25import org.sleuthkit.autopsy.datamodel.FileNode;
26import org.sleuthkit.autopsy.datamodel.FilterNodeLeaf;
27import org.sleuthkit.datamodel.AbstractFile;
33class HashDbSearchResultFactory
extends ChildFactory<AbstractFile> {
35 Collection<AbstractFile> kvContents;
37 HashDbSearchResultFactory(Collection<AbstractFile> kvContents) {
38 this.kvContents = kvContents;
42 protected boolean createKeys(List<AbstractFile> toPopulate) {
43 toPopulate.addAll(kvContents);
48 protected Node createNodeForKey(AbstractFile content) {
49 return new FilterNodeLeaf(
new FileNode(content,
false));
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.