Getstringdef, Setbyte, Setbytes – HP NonStop G-Series User Manual

Page 102

Advertising
background image

getStringDef

Gets the string value of an item.

String getStringDef( String name, String defValue );

Usage Gets the string value of the item specified in the name parameter or the specified defValue, if the name does not
exist. The default value can be a null string or any other text string.

Returns This method returns a text string.

Throws

java.lang.IllegalAccessError.

Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.

java.lang.NoSuchFieldError.

Occurs when the user tries to set an attribute which is not one of the predefined attributes.

setByte

Sets the byte value of a specified item.

void setByte( String name, byte value );

Usage Sets the value of the item specified in the name parameter to the byte value specified in the value parameter. The
value is an 8-bit byte.

Throws

java.lang.IllegalAccessError.

Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.

java.lang.NoSuchFieldError.

Occurs when the user tries to set an attribute which is not one of the predefined attributes.

setBytes

Sets the byte array value of a specified item.

void setBytes( String name, byte[] value, int len );

Usage Sets the value of the item specified in the name parameter to the byte array value specified in the value parameter,
with the length set by the len parameter. The value is in 8-bit bytes.

Throws

java.lang.IllegalAccessError.

Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.

java.lang.NoSuchFieldError.

Occurs when the user tries to set an attribute which is not one of the predefined attributes.

Advertising