public final static NameValuePair[] parseParameters(final String value,HeaderValueParser parser) throws ParseException {
  if (value == null) {
    throw new IllegalArgumentException("Value to parse may not be null");
  }
  if (parser == null)   parser=BasicHeaderValueParser.DEFAULT;
  CharArrayBuffer buffer=new CharArrayBuffer(value.length());
  buffer.append(value);
  ParserCursor cursor=new ParserCursor(0,value.length());
  return parser.parseParameters(buffer,cursor);
}

public final static NameValuePair [ ] parseParameters ( final String value , HeaderValueParser parser ) throws ParseException { if ( value == null ) { throw new IllegalArgumentException ( "Value to parse may not be null" ) ; } if ( parser == null ) parser = BasicHeaderValueParser . DEFAULT ; CharArrayBuffer buffer = new CharArrayBuffer ( value . length ( ) ) ; buffer . append ( value ) ; ParserCursor cursor = new ParserCursor ( 0 , value . length ( ) ) ; return parser . parseParameters ( buffer , cursor ) ; }
parses parameters with the given parser .
