public byte getByte ( String key , byte defaultValue ) { addToDefaults ( key , Byte . toString ( defaultValue ) ) ; String value = get ( key ) ; if ( value == null ) { return defaultValue ; } else { return Byte . valueOf ( value ) ; } }
Returns the Byte value for the given key . If the key does not exists it will return the default value given . The method fails if the value is not a Byte .