Go to the documentation of this file.
22package org.sleuthkit.autopsy.rejview;
24import com.williballenthin.rejistry.RegistryKey;
25import com.williballenthin.rejistry.RegistryParseException;
26import com.williballenthin.rejistry.RegistryValue;
27import java.io.UnsupportedEncodingException;
28import java.util.Iterator;
29import java.util.LinkedList;
31import java.util.logging.Level;
32import org.openide.util.NbBundle.Messages;
33import org.sleuthkit.autopsy.coreutils.Logger;
41 private final RegistryKey
key;
47 @Messages({
"RejTreeKeyNode.parseFailed.string=PARSE FAILED."})
51 return this.key.getName();
52 }
catch (UnsupportedEncodingException ex) {
53 logger.log(Level.WARNING,
"Failed to parse key name", ex);
54 return Bundle.RejTreeKeyNode_parseFailed_string();
61 return this.key.getValueList().size() > 0 || this.key.getSubkeyList().size() > 0;
62 }
catch (RegistryParseException ex) {
63 logger.log(Level.WARNING,
"Failed to parse key children.", ex);
70 LinkedList<RejTreeNode> children =
new LinkedList<>();
73 Iterator<RegistryKey> keyit = this.key.getSubkeyList().iterator();
74 while (keyit.hasNext()) {
78 Iterator<RegistryValue> valueit = this.key.getValueList().iterator();
79 while (valueit.hasNext()) {
82 }
catch (RegistryParseException ex) {
83 logger.log(Level.WARNING,
"Failed to parse key children.", ex);
91 RegistryKey getKey() {
synchronized static Logger getLogger(String name)
List< RejTreeNode > getChildren()
RejTreeNodeView getView()
static final Logger logger
RejTreeKeyNode(RegistryKey key)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.