src/main/java/pityoulish/jrmi/outlet/MsgOutletCommandDispatcher.java
protected int parseSeconds(String arg)
  {
    int seconds = 0;

    try {
      seconds = Integer.parseInt(arg);

      if (seconds < 1)
       {
         System.err.println(Catalog.CMDLINE_BAD_SECONDS_1.format(arg));
         seconds = -1;
       }

    } catch (Exception x) {
      System.err.println(Catalog.CMDLINE_BAD_SECONDS_1.format(arg));
      System.err.println(x);
      seconds = -1;
    }

    return seconds;
  }
/**
   * Parses the "seconds" argument for the Open Outlet operation.
   * In case of a problem, an error message is printed and
   * a negative value returned.
   *
   * @param arg   the string to parse
   *
   * @return   the seconds, or negative if invalid
   */
Parses the "seconds" argument for the Open Outlet operation.
In case of a problem, an error message is printed and
a negative value returned.

@param arg   the string to parse

@return   the seconds, or negative if invalid
Parses the " seconds " argument for the Open Outlet operation . In case of a problem an error message is printed and a negative value returned . @param arg the string to parse @return the seconds or negative if invalid
protected int parseSeconds(String arg)
  {
    int seconds = 0;
    try {
      seconds = Integer.parseInt(arg);
      if (seconds < 1)
       {
         System.err.println(Catalog.CMDLINE_BAD_SECONDS_1.format(arg));
         seconds = -1;
       }
    } catch (Exception x) {
      System.err.println(Catalog.CMDLINE_BAD_SECONDS_1.format(arg));
      System.err.println(x);
      seconds = -1;
    }
    return seconds;
  }
protected int parseSeconds ( String arg ) { int seconds = 0 ; try { seconds = Integer . parseInt ( arg ) ; if ( seconds < 1 ) { System . err . println ( Catalog . CMDLINE_BAD_SECONDS_1 . format ( arg ) ) ; seconds = - 1 ; } } catch ( Exception x ) { System . err . println ( Catalog . CMDLINE_BAD_SECONDS_1 . format ( arg ) ) ; System . err . println ( x ) ; seconds = - 1 ; } return seconds ; }
Parses the "seconds" argument for the Open Outlet operation.
Parses the " seconds " argument for the Open Outlet operation .