22 package org.sleuthkit.autopsy.rejview;
24 import com.williballenthin.rejistry.RegistryKey;
25 import com.williballenthin.rejistry.RegistryParseException;
26 import com.williballenthin.rejistry.RegistryValue;
27 import java.io.UnsupportedEncodingException;
28 import java.util.Iterator;
29 import java.util.LinkedList;
30 import java.util.List;
31 import java.util.logging.Level;
32 import org.openide.util.NbBundle.Messages;
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() {
static final Logger logger
RejTreeKeyNode(RegistryKey key)
RejTreeNodeView getView()
synchronized static Logger getLogger(String name)
List< RejTreeNode > getChildren()