Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.squawk.io.j2me
Class ParameterParser

    java.lang.Object
      com.sun.squawk.io.j2me.ParameterParser

    public abstract class ParameterParser

extends Object

Helper class for parsing extra parameters from a connection URL.

Constructor Summary
`ParameterParser()`

Method Summary
`abstract boolean` | `parameter(String name, String value)` Notifies a subclass of a = pair that has been parsed.
`String` | `parse(String name)` Parses the = pairs separated by ';' in a URL name.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ParameterParser

    public ParameterParser()

Method Detail

### parse

    public String parse(String name)

  Parses the = pairs separated by ';' in a URL name. The pairs start after the first ';' in the given name.

  Parameters:
    `name` - the name part of a connection URL
  Returns:
    the name stripped of the parameters (if any)

### parameter

    public abstract boolean parameter(String name,
                                      String value)
                               throws IllegalArgumentException

  Notifies a subclass of a = pair that has been parsed.

  Returns:
    true if the parameter was accepted
  Throws:
    `IllegalArgumentException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

"
For updated information see the Java FRC site
"