src/net/java/sip/communicator/util/PortTracker.java
/**
     * Attempts to create a port tracker that uses the min and max values
     * indicated by the <tt>newMinPortString</tt> and <tt>newMinPortString</tt>
     * strings and returns it if successful. The method fails silently
     * (returning <tt>null</tt>) otherwise.
     *
     * @param newMinPortString the {@link String} containing the minimum port
     * number that this tracker should allow.
     * @param newMaxPortString the {@link String} containing the minimum port
     * number that this tracker should allow.
     *
     * @return the newly created port tracker or <tt>null</tt> if the string
     * params do not contain valid port numbers.
     */
Attempts to create a port tracker that uses the min and max values
indicated by the newMinPortString and newMinPortString
strings and returns it if successful. The method fails silently
(returning null) otherwise.

@param newMinPortString the  String containing the minimum port
number that this tracker should allow.
@param newMaxPortString the  String containing the minimum port
number that this tracker should allow.

@return the newly created port tracker or null if the string
params do not contain valid port numbers.
Attempts to create a port tracker that uses the min and max values indicated by the newMinPortString and newMinPortString strings and returns it if successful . The method fails silently ( returning null ) otherwise . @param newMinPortString the String containing the minimum port number that this tracker should allow . @param newMaxPortString the String containing the minimum port number that this tracker should allow . @return the newly created port tracker or null if the string params do not contain valid port numbers .
public static PortTracker createTracker(String newMinPortString,
                                            String newMaxPortString)
    {
        try
        {
            int minPort = Integer.parseInt(newMinPortString);
            int maxPort = Integer.parseInt(newMaxPortString);
            return new PortTracker(minPort, maxPort);
        }
        catch(Exception exc)
        {
            logger.info("Ignoring invalid port range ["+ newMinPortString
                                              + " to " + newMaxPortString +"]");
            logger.debug("Cause: ", exc);
            return null;
        }
    }
public static PortTracker createTracker ( String newMinPortString , String newMaxPortString ) { try { int minPort = Integer . parseInt ( newMinPortString ) ; int maxPort = Integer . parseInt ( newMaxPortString ) ; return new PortTracker ( minPort , maxPort ) ; } catch ( Exception exc ) { logger . info ( "Ignoring invalid port range [" + newMinPortString + " to " + newMaxPortString + "]" ) ; logger . debug ( "Cause: " , exc ) ; return null ; } }
Attempts to create a port tracker that uses the min and max values
 indicated by the <tt>newMinPortString</tt> and <tt>newMinPortString</tt>
 strings and returns it if successful.
Attempts to create a port tracker that uses the min and max values indicated by the <tt > newMinPortString< / tt > and <tt > newMinPortString< / tt > strings and returns it if successful .
//Null, NumberFormat, IllegalArgument