public class RegStringValue extends RegistryValue
This class represents a named value of type REG_SZ or REG_EXPAND_SZ.
The type specific data for the value will be a String.
RegistryValue,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
Retrieves the type specific form of
this value
which is a String. |
int |
refreshData()
This method is used to update the data for
this value
because the data does not update automatically if it was changed. |
int |
setValue(String value)
Used to set the data of
this value. |
String |
toString()
Retrieve a
String representation of this value. |
clone, compareTo, equals, getByteData, getByteLength, getKey, getName, getValueType, getValueTypeInt, hashCode, setByteData, setValueType, setValueTypeIntpublic String getValue()
this value
which is a String.
RegistryValue.setValueType(ValueType)
and is no longer of type REG_SZ or REG_EXPAND_SZ,
then a RegistryException is thrown.String representing the data.RegistryException - if the type is not REG_SZ or REG_EXPAND_SZ.public int setValue(String value)
this value.
If the type is no longer of type REG_SZ or REG_EXPAND_SZ,
then a RegistryException is thrown.value - A String representing the new data for the value.RegistryKey.formatErrorMessage(int).RegistryException - if the type is not REG_SZ or REG_EXPAND_SZ.public int refreshData()
this value
because the data does not update automatically if it was changed.refreshData in class RegistryValueRegistryKey.formatErrorMessage(int).RegistryException - if the type is not REG_SZ or REG_EXPAND_SZ.public String toString()
String representation of this value.toString in class RegistryValueString representation for the value.Copyright © 2011, Yinon Michaeli. All rights reserved.