BaseValueParser is a base class for classes that need to parse name/value Parameters, for example GET/POST data or Cookies (DefaultParameterParser and DefaultCookieParser).
It can also be used standalone, for an example see DataStreamParser.
NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behaviour is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match:
ValueParser vp = new BaseValueParser(); vp.add("ERROR",1); vp.add("eRrOr",2); int result = vp.getInt("ERROR");
In the above example, result is 2.
@author
Ilkka Priha
@author
Jon S. Stevens
@author
Sean Legassick
@author
Jason van Zyl
@author
Scott Eade
@author
Henning P. Schmiedehausen
@author
Quinton McCombs
@version $Id: BaseValueParser.java 291608 2005-09-26 12:20:40Z henning $