org.apache.fulcrum.parser
Class StringValueParser

java.lang.Object
  extended by org.apache.fulcrum.parser.BaseValueParser
      extended by org.apache.fulcrum.parser.StringValueParser
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, ParserServiceSupport, ValueParser, org.apache.fulcrum.pool.Recyclable

public class StringValueParser
extends BaseValueParser

An extension that parses a String for name/value pairs.

Version:
$Id: StringValueParser.java 670329 2008-06-22 09:35:12Z tv $
Author:
John McNally

Field Summary
 
Fields inherited from class org.apache.fulcrum.parser.BaseValueParser
parameters, parserService
 
Fields inherited from interface org.apache.fulcrum.parser.ValueParser
DEFAULT_CHARACTER_ENCODING
 
Constructor Summary
StringValueParser()
           
 
Method Summary
 void parse(String s, char delim, boolean urlDecode)
          Parses a String using a single delimiter.
 void parse(String s, char paramDelim, char pairDelim, boolean urlDecode)
           
 
Methods inherited from class org.apache.fulcrum.parser.BaseValueParser
add, add, add, add, add, add, clear, containsKey, convert, convertAndTrim, convertAndTrim, dispose, enableLogging, get, getBigDecimal, getBigDecimal, getBigDecimals, getBoolean, getBoolean, getBooleanObject, getBooleanObject, getBooleanObjects, getBooleans, getByte, getByte, getByteObject, getByteObject, getBytes, getCharacterEncoding, getDate, getDate, getDate, getDateFormat, getDouble, getDouble, getDoubleObject, getDoubleObject, getDoubleObjects, getDoubles, getFloat, getFloat, getFloatObject, getFloatObject, getFloatObjects, getFloats, getInt, getInt, getIntObject, getIntObject, getIntObjects, getInts, getKeys, getLocale, getLogger, getLong, getLong, getLongObject, getLongObject, getLongObjects, getLongs, getNumberFormat, getObject, getObjects, getParam, getString, getString, getStrings, getStrings, getToStringParam, getUrlFolding, isDisposed, keySet, putParam, recycle, recycle, remove, setCharacterEncoding, setDateFormat, setLocale, setNumberFormat, setParserService, setProperties, setProperty, setString, setStrings, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringValueParser

public StringValueParser()
Method Detail

parse

public void parse(String s,
                  char delim,
                  boolean urlDecode)
           throws Exception
Parses a String using a single delimiter.

Parameters:
s - a String value
delim - a char value
urlDecode - a boolean value
Throws:
Exception - Error decoding name/value pairs.

parse

public void parse(String s,
                  char paramDelim,
                  char pairDelim,
                  boolean urlDecode)
           throws Exception
Throws:
Exception


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.