public class RegMultiStringValue extends RegistryValue
This class represents a named value of type REG_MULTI_SZ.
The type specific data for the value will be an array of String
s.
RegistryValue
,
Serialized FormModifier and Type | Method and Description |
---|---|
String[] |
getValue()
Retrieves the type specific form of
this value
which is an array of String s. |
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, setValueTypeInt
public String[] getValue()
this
value
which is an array of String
s.
RegistryValue.setValueType(ValueType)
and is no longer of type REG_MULTI_SZ,
then a RegistryException
is thrown.String
s representing the data.RegistryException
- if the type is not REG_MULTI_SZ.public int setValue(String... value)
this
value.
If the type is no longer of type REG_MULTI_SZ,
then a RegistryException
is thrown.value
- An array of String
s representing the new data for the value.
NOTE: As of version 1.7.6, this can now be a variable list of String
s.RegistryKey.formatErrorMessage(int)
.RegistryException
- if the type is not REG_MULTI_SZ.public int refreshData()
this
value
because the data does not update automatically if it was changed.refreshData
in class RegistryValue
RegistryKey.formatErrorMessage(int)
.RegistryException
- if the type is not REG_MULTI_SZ.public String toString()
String
representation of this
value.toString
in class RegistryValue
String
representation for the value.Copyright © 2011, Yinon Michaeli. All rights reserved.