FileDocCategorySizeDatePackage
QueryString.javaAPI DocExample846Sun Dec 12 10:52:14 GMT 2004com.macfaq.net

QueryString

public class QueryString extends Object

Fields Summary
private StringBuffer
query
Constructors Summary
public QueryString(String name, String value)


       
    encode(name, value);
  
Methods Summary
public synchronized voidadd(java.lang.String name, java.lang.String value)

 
    query.append('&");
    encode(name, value);
  
private synchronized voidencode(java.lang.String name, java.lang.String value)

    try { 
      query.append(URLEncoder.encode(name, "UTF-8"));
      query.append('="); 
      query.append(URLEncoder.encode(value, "UTF-8"));
    }
    catch (UnsupportedEncodingException ex) {
      throw new RuntimeException("Broken VM does not support UTF-8");
    }
  
public java.lang.StringgetQuery()

    return query.toString();
  
public java.lang.StringtoString()

    return getQuery();