"

2013 FRC Java API

"

com.sun.squawk.io.j2me
Class ParameterParser

java.lang.Object
  extended by 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

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"