Android URL Decode decodeUrlFormEncoded(String data)

Here you can find the source of decodeUrlFormEncoded(String data)

Description

decode Url Form Encoded

License

Open Source License

Declaration

public static Map<String, String> decodeUrlFormEncoded(String data) 

Method Source Code

//package com.java2s;

import java.util.HashMap;
import java.util.Map;

public class Main {
    public static Map<String, String> decodeUrlFormEncoded(String data) {
        HashMap<String, String> map = new HashMap<String, String>();
        String d[] = data.split("&");
        for (String s : d) {
            String t[] = s.split("=");
            String key = t[0];//from   w w  w . j a v a 2s  .  c  o  m
            String value = t[1];
            map.put(key, value);
        }
        return map;
    }
}

Related

  1. urlDecode(String in)
  2. decode(final String content, final String encoding)
  3. decode(String s)
  4. decodeUrl(String s)
  5. decodeUrl(String s)
  6. parseForHTTP(String str)
  7. parseLastfmUrl(String url)
  8. parseUrl(String url)
  9. parseUrl(String url)