|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.moyosoft.connector.registry.RegistryValue
Field Summary | |
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
|
Constructor Summary | |
RegistryValue(byte[] binaryData)
Creates a registry value for the specified binary data. |
|
RegistryValue(int value)
Creates a registry value for the specified integer. |
|
RegistryValue(int type,
byte[] data)
Creates a registry value object with the specified raw data. |
|
RegistryValue(long value)
Creates a registry value for the specified long. |
|
RegistryValue(java.lang.String value)
Creates a registry value for the specified string. |
|
RegistryValue(java.lang.String value,
boolean containsEnvironmentVariables)
Creates a registry value for the specified string. |
Method Summary | |
java.lang.String |
getAsString()
Returns a formatted string of this registry value for all types. |
byte[] |
getBinaryData()
Returns the binary data of this registry value. |
int |
getInteger()
Returns the integer value of this registry value for the types REG_DWORD and REG_DWORD_BIG_ENDIAN. |
long |
getLong()
Returns the long value of this registry value for the type REG_QWORD. |
byte[] |
getRawData()
Returns the raw data of this value. |
java.lang.String |
getString()
Returns the string value of this registry value for the types REG_SZ, REG_EXPAND_SZ and REG_LINK. |
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). |
boolean |
isInteger()
Returns true if this registry value type is an integer (REG_DWORD). |
boolean |
isLong()
Returns true if this registry value type is a long (REG_QWORD). |
boolean |
isString()
Returns true if this registry value type is a String (REG_SZ or REG_EXPAND_SZ). |
boolean |
isSymbolicLink()
Returns true if this registry value type is a Symbolic link (REG_LINK). |
java.lang.String |
toString()
Returns a formatted string of this registry value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int REG_NONE
public static final int REG_SZ
public static final int REG_EXPAND_SZ
public static final int REG_BINARY
public static final int REG_DWORD
public static final int REG_DWORD_BIG_ENDIAN
public static final int REG_LINK
public static final int REG_QWORD
Constructor Detail |
public RegistryValue(int type, byte[] data)
Example:
new RegistryValue(RegistryValue.REG_BINARY, new byte[] {0x01, 0x02, 0x03});
type
- The type of the value (REG_SZ, REG_BINARY or REG_DWORD).data
- The raw data of the value. Strings' (REG_SZ) data use the UTF-16LE character encoding.public RegistryValue(java.lang.String value)
public RegistryValue(java.lang.String value, boolean containsEnvironmentVariables)
value
- the actual String valuecontainsEnvironmentVariables
- if true the type REG_EXPAND_SZ is used; otherwise REG_SZ type is used.public RegistryValue(byte[] binaryData)
public RegistryValue(int value)
public RegistryValue(long value)
Method Detail |
public int getType()
public byte[] getRawData()
public boolean isString()
public boolean isBinary()
public boolean isInteger()
public boolean isLong()
public boolean isSymbolicLink()
public java.lang.String getString()
public byte[] getBinaryData()
public int getInteger()
public long getLong()
public java.lang.String getAsString()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |