API Reference
| Classic JavaDoc |
Class RegistryValue
java.lang.Object └ com.moyosoft.connector.registry.RegistryValue
public class RegistryValue
Fields
static int | REG_BINARY | |
static int | REG_DWORD | |
static int | REG_DWORD_BIG_ENDIAN | |
static int | REG_EXPAND_SZ | |
static int | REG_LINK | |
static int | REG_NONE | |
static int | REG_QWORD | |
static int | REG_SZ | |
Constructors
public | RegistryValue (int type, byte data) | |
Creates a registry value object with the specified raw data. Example: new RegistryValue(RegistryValue.REG_BINARY, new byte[] {0x01, 0x02, 0x03}); |
public | RegistryValue (String value) | |
Creates a registry value for the specified string. The value type is set to REG_SZ. |
public | RegistryValue (String value, boolean containsEnvironmentVariables) | |
Creates a registry value for the specified string. The value type is set to REG_SZ or REG_EXPAND_SZ. |
public | RegistryValue (byte binaryData) | |
Creates a registry value for the specified binary data. The value type is set to REG_BINARY. |
public | RegistryValue (int value) | |
Creates a registry value for the specified integer. The value type is set to REG_DWORD. |
public | RegistryValue (long value) | |
Creates a registry value for the specified long. The value type is set to REG_QWORD. |
Methods
String | getAsString () | |
Returns a formatted string of this registry value for all types. If the type is REG_SZ, REG_EXPAND_SZ or REG_LINK this method returns the same value as getString(). If the type is REG_BINARY this method returns the raw data formatted as hexadecimal bytes. If the type is REG_DWORD or ... more > |
byte | getBinaryData () | |
Returns the binary data of this registry value. If this registry value type is not REG_BINARY, this method returns null. |
int | getInteger () | |
Returns the integer value of this registry value for the types REG_DWORD and REG_DWORD_BIG_ENDIAN. If this registry value is of another type, this method returns 0. |
long | getLong () | |
Returns the long value of this registry value for the type REG_QWORD. If this registry value is of another type, this method returns 0. |
byte | getRawData () | |
Returns the raw data of this value. Strings' (REG_SZ) data use the UTF-16LE character encoding. |
String | getString () | |
Returns the string value of this registry value for the types REG_SZ, REG_EXPAND_SZ and REG_LINK. If this registry value is of another type, this method returns null. |
int | getType () | |
Returns the type (REG_SZ, REG_BINARY, REG_DWORD, etc.) of this registry value object. |
boolean | isBinary () | |
Returns true if this registry value is a binary type (REG_BINARY). If this method returns true, the binary data are accessible with the method getBinaryData(). |
boolean | isInteger () | |
Returns true if this registry value type is an integer (REG_DWORD). If this method returns true, the integer value is accessible with the method getInteger(). |
boolean | isLong () | |
Returns true if this registry value type is a long (REG_QWORD). If this method returns true, the integer value is accessible with the method getLong(). |
boolean | isString () | |
Returns true if this registry value type is a String (REG_SZ or REG_EXPAND_SZ). If this method returns true, the String value is accessible with the method getString(). |
boolean | isSymbolicLink () | |
Returns true if this registry value type is a Symbolic link (REG_LINK). If this method returns true, the Symbolic link value is accessible with the method getString(). |
String | toString () | |
Returns a formatted string of this registry value. Same as getAsString(). |
Community comments
Powered by JavaDocPlus