public static short parseShort (@Nullable final String sStr, @Nonnegative final int nRadix, final short nDefault)
  {
    if (sStr != null && sStr.length () > 0)
      try
      {
        return Short.parseShort (sStr, nRadix);
      }
      catch (final NumberFormatException ex)
      {
        // Fall through
      }
    return nDefault;
  }
public static short parseShort ( @ Nullable final String sStr , @ Nonnegative final int nRadix , final short nDefault ) { if ( sStr != null && sStr . length ( ) > 0 ) try { return Short . parseShort ( sStr , nRadix ) ; } catch ( final NumberFormatException ex ) { } return nDefault ; }
Parse the given {@link String} as short with the specified radix.

@param sStr
The string to parse. May be <code>null</code>.
@param nRadix
The radix to use. Must be &ge; {@link Character#MIN_RADIX} and &le;
{@link Character#MAX_RADIX}.
@param nDefault
The default value to be returned if the passed object could not be
converted to a valid value.
@return The default if the string does not represent a valid value.