public class RegBinaryValue extends RegistryValue
This class represents a named value of type REG_BINARY, REG_NONE, REG_LINK,
REG_RESOURCE_LIST, REG_FULL_RESOURCE_DESCRIPTOR, or REG_RESOURCE_REQUIREMENTS_LIST.
The type specific data for the value will be an array of byte
s.
RegistryValue
,
Serialized FormModifier and Type | Method and Description |
---|---|
byte[] |
getValue()
Retrieves the type specific form of the data for
this value
which is an array of byte 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(byte... 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 byte[] getValue()
this
value
which is an array of byte
s.
RegistryValue.setValueType(ValueType)
and is no longer of type REG_BINARY, REG_NONE, REG_LINK, REG_RESOURCE_LIST,
REG_FULL_RESOURCE_DESCRIPTOR, or REG_RESOURCE_REQUIREMENTS_LIST,
then the byte form of the data is returned.public int setValue(byte... value)
this
value.
If the type is no longer of type REG_BINARY, REG_NONE, REG_LINK,
REG_RESOURCE_LIST, REG_FULL_RESOURCE_DESCRIPTOR, or REG_RESOURCE_REQUIREMENTS_LIST,
then a call to RegistryValue.setByteData(byte[])
is made.value
- A byte
array representing the new data for the value.
NOTE: As of version 1.7.6, this can now be a variable list of byte
s.RegistryKey.formatErrorMessage(int)
.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_BINARY, REG_NONE, REG_LINK,
REG_RESOURCE_LIST, REG_FULL_RESOURCE_DESCRIPTOR,
or REG_RESOURCE_REQUIREMENTS_LIST; or an unknown value type.public String toString()
String
representation of this
value.toString
in class RegistryValue
String
representation for the value.Copyright © 2011, Yinon Michaeli. All rights reserved.