Getbytedef, Getbytesdef, Getdoubledef – HP NonStop G-Series User Manual
Page 100

Usage The JoltSessionAttributes class contains data that must be removed for object reuse. Use the clear method to
remove data.
getByteDef
Gets the byte value of a specified item.
byte getByteDef ( String name, byte defValue );
Usage Gets the byte value (8-bit) of the item specified in the name parameter or the specified defValue, if the name does
not exist.
Returns This method returns a single byte value.
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.
getBytesDef
Gets an array of byte values.
byte[ ] getBytesDef ( String name, byte[] defValue );
Usage Gets an array of byte values of the item specified in the name parameter or the specified defValue, if the name does
not exist.
Returns This method returns an array of values.
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.
getDoubleDef
Gets the double precision value of an item.
double getDoubleDef( String name, double defValue );
Usage Gets the double precision value of the item specified in the name parameter or the specified defValue, if the name
does not exist.
Returns This method returns an double precision floating point value (64-bit).
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.