src/main/java/pityoulish/jrmi/outlet/MsgOutletCommandDispatcher.java
protected String[] parseRecipients(String arg)
  {
    String[] recipients = arg.split(",");

    if (recipients.length < 1)
     {
       System.err.println(Catalog.CMDLINE_BAD_RECIPIENTS_1.format(arg));
       recipients = null;
     }
    else
     {
       for (String recipient : recipients)
          if ((recipient.length() < 1) ||
              ("*".equals(recipient) && recipients.length > 1))
           {
             System.err.println(Catalog.CMDLINE_BAD_RECIPIENTS_1.format(arg));
             recipients = null;
             break;
           }
     }

    return recipients;
  }
/**
   * Parses the "recipients" argument for the Send Message operation.
   * In case of a problem, an error message is printed and
   * <code>null</code> returned.
   *
   * @param arg   the string to parse
   *
   * @return   the recipients, or <code>null</code> if invalid
   */
Parses the "recipients" argument for the Send Message operation.
In case of a problem, an error message is printed and
null returned.

@param arg   the string to parse

@return   the recipients, or null if invalid
Parses the " recipients " argument for the Send Message operation . In case of a problem an error message is printed and null returned . @param arg the string to parse @return the recipients or null if invalid
protected String[] parseRecipients(String arg)
  {
    String[] recipients = arg.split(",");
    if (recipients.length < 1)
     {
       System.err.println(Catalog.CMDLINE_BAD_RECIPIENTS_1.format(arg));
       recipients = null;
     }
    else
     {
       for (String recipient : recipients)
          if ((recipient.length() < 1) ||
              ("*".equals(recipient) && recipients.length > 1))
           {
             System.err.println(Catalog.CMDLINE_BAD_RECIPIENTS_1.format(arg));
             recipients = null;
             break;
           }
     }
    return recipients;
  }
protected String [ ] parseRecipients ( String arg ) { String [ ] recipients = arg . split ( "," ) ; if ( recipients . length < 1 ) { System . err . println ( Catalog . CMDLINE_BAD_RECIPIENTS_1 . format ( arg ) ) ; recipients = null ; } else { for ( String recipient : recipients ) if ( ( recipient . length ( ) < 1 ) || ( "*" . equals ( recipient ) && recipients . length > 1 ) ) { System . err . println ( Catalog . CMDLINE_BAD_RECIPIENTS_1 . format ( arg ) ) ; recipients = null ; break ; } } return recipients ; }
Parses the "recipients" argument for the Send Message operation.
Parses the " recipients " argument for the Send Message operation .