beautypg.com

Getstringdef, Getbytesdef, Getbyteitemdef – HP NonStop G-Series User Manual

Page 132

background image

Throws

NoSuchFieldError.

It is an invalid name.

getStringDef

Gets the first item based on its name.

String getStringDef(String name,String def)

Usage Gets the first item based on its name. If it does not exist, the default value will be returned. name specifies the
name of the item. def specifies the default string value.

Returns A string value.

Throws

NoSuchFieldError.

It is an invalid name.

getBytesDef

Gets the first item based on its name.

byte[] getBytesDef(String name, byte def[])

Usage Get the first item based on its name. If it does not exist, the default value will be returned. name specifies the name
of the item. def specifies the default byte-array value.

Returns A byte-array object.

Throws

NoSuchFieldError.

It is an invalid name.

getByteItemDef

Gets an occurrence of a named item of byte data type.

byte getByteItemDef(String name, int itemNo, byte def)

Usage The occurrence starts from 0. If it does not exist, the default value will be returned. name specifies the name of the
item. itemNo specifies the occurrence number of the item. def specifies the default value.

Returns A byte value.

Throws

NoSuchFieldError.

It is an invalid name.