src/com/mlhsoftware/commandline/model/CmdTokener.java
public String nextTo( String delimiters )
  {
    char c;
    StringBuffer sb = new StringBuffer();
    for ( ; ; )
    {
      c = next();
      if ( delimiters.indexOf( c ) >= 0 || c == 0 ||
              c == '\n' || c == '\r' )
      {
        if ( c != 0 )
        {
          back();
        }
        return sb.toString().trim();
      }
      sb.append( c );
    }
  }
/**
     * Get the text up but not including one of the specified delimeter
     * characters or the end of line, whichever comes first.
     * @param delimiters A set of delimiter characters.
     * @return A string, trimmed.
     */
Get the text up but not including one of the specified delimeter
characters or the end of line, whichever comes first.
@param delimiters A set of delimiter characters.
@return A string, trimmed.
Get the text up but not including one of the specified delimeter characters or the end of line whichever comes first . @param delimiters A set of delimiter characters . @return A string trimmed .
public String nextTo( String delimiters )
  {
    char c;
    StringBuffer sb = new StringBuffer();
    for ( ; ; )
    {
      c = next();
      if ( delimiters.indexOf( c ) >= 0 || c == 0 ||
              c == '\n' || c == '\r' )
      {
        if ( c != 0 )
        {
          back();
        }
        return sb.toString().trim();
      }
      sb.append( c );
    }
  }
public String nextTo ( String delimiters ) { char c ; StringBuffer sb = new StringBuffer ( ) ; for ( ; ; ) { c = next ( ) ; if ( delimiters . indexOf ( c ) >= 0 || c == 0 || c == '\n' || c == '\r' ) { if ( c != 0 ) { back ( ) ; } return sb . toString ( ) . trim ( ) ; } sb . append ( c ) ; } }
Get the text up but not including one of the specified delimeter
 characters or the end of line, whichever comes first.
Get the text up but not including one of the specified delimeter characters or the end of line whichever comes first .