PreferencesException
424344454647484950
if (!Advapi32Util.registryKeyExists(root, curPath)) { boolean created = Advapi32Util.registryCreateKey(root, parentPath, segment); if (!created) throw new PreferencesException("Failed to create registry key " + root + NODE_SEPARATOR + parentPath + NODE_SEPARATOR + segment); } } }
116117118119120121122123
else throw new UnsupportedDataTypeException(metadata.getDataType()); } catch (Win32Exception e) { throw new PreferencesException(e.getMessage(), e); } }
286287288289290291292293
303304305306307308309310
{ Advapi32Util.registryDeleteValue(root, winRegKey, key); } catch (Win32Exception e) { throw new PreferencesException(e.getMessage(), e); } }
322323324325326327328329330
{ Advapi32Util.registryDeleteValue(root, winRegKey, keyName); } catch (Win32Exception e) { throw new PreferencesException(e.getMessage(), e); } } }
343344345346347348349350
{ RegistryUtils.deleteKeyWithChildren(root, winRegKey + RegistryUtils.NODE_SEPARATOR + name); } catch (Win32Exception e) { throw new PreferencesException(e.getMessage(), e); } }
359360361362363364365366
{ return(Advapi32Util.registryGetValues(root, winRegKey).keySet()); } catch (Win32Exception e) { throw new PreferencesException(e.getMessage(), e); } }
2122232425262728
{ return(Integer.valueOf(s)); } catch (NumberFormatException e) { throw new PreferencesException("Failed to convert value '" + s + "' to an integer.", e); } }
112113114115116117118119120121122123
{ return(encrypter.encrypt(data)); } catch (EncryptionOperationNotPossibleException e) { throw new PreferencesException("Encryption failed: " + e, e); } catch (UserAbortedEnteringPasswordException e) { throw new PreferencesException("User aborted encryption.", e); } }
140141142143144145146147148149150151
{ return(encrypter.decrypt(data)); } catch (EncryptionOperationNotPossibleException e) { throw new PreferencesException("Decryption failed: " + e, e); } catch (UserAbortedEnteringPasswordException e) { throw new PreferencesException("User aborted decryption.", e); } }