src/main/java/pityoulish/sockets/follow/FollowTheBoardHandler.java
protected int parsePollingInterval(String arg)
  {
    int interval = 0;

    try {
      interval = Integer.parseInt(arg);

      if (interval < 1)
       {
         System.err.println(Catalog.CMDLINE_BAD_INTERVAL_1.format(arg));
         interval = 0;
       }

    } catch (Exception x) {
      System.err.println(Catalog.CMDLINE_BAD_INTERVAL_1.format(arg));
      System.err.println(x);
      interval = 0;
    }

    return interval;
  }
/**
   * Parses the polling interval.
   * In case of a problem, an error message is printed and 0 returned.
   *
   * @param arg   the string to parse
   *
   * @return   the polling interval in seconds, or 0 if invalid
   */
Parses the polling interval.
In case of a problem, an error message is printed and 0 returned.

@param arg   the string to parse

@return   the polling interval in seconds, or 0 if invalid
Parses the polling interval . In case of a problem an error message is printed and 0 returned . @param arg the string to parse @return the polling interval in seconds or 0 if invalid
protected int parsePollingInterval(String arg)
  {
    int interval = 0;
    try {
      interval = Integer.parseInt(arg);
      if (interval < 1)
       {
         System.err.println(Catalog.CMDLINE_BAD_INTERVAL_1.format(arg));
         interval = 0;
       }
    } catch (Exception x) {
      System.err.println(Catalog.CMDLINE_BAD_INTERVAL_1.format(arg));
      System.err.println(x);
      interval = 0;
    }
    return interval;
  }
protected int parsePollingInterval ( String arg ) { int interval = 0 ; try { interval = Integer . parseInt ( arg ) ; if ( interval < 1 ) { System . err . println ( Catalog . CMDLINE_BAD_INTERVAL_1 . format ( arg ) ) ; interval = 0 ; } } catch ( Exception x ) { System . err . println ( Catalog . CMDLINE_BAD_INTERVAL_1 . format ( arg ) ) ; System . err . println ( x ) ; interval = 0 ; } return interval ; }
Parses the polling interval.
Parses the polling interval .