Java URL to convertURL(String url)

Here you can find the source of convertURL(String url)

Description

convert URL

License

Open Source License

Declaration

public static String convertURL(String url) throws UnsupportedEncodingException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.UnsupportedEncodingException;

public class Main {
    public static String convertURL(String url) throws UnsupportedEncodingException {
        String var1 = java.net.URLDecoder.decode(url, "ASCII");
        String var2 = var1.replaceAll("%2C", ",");
        return var2;
    }/*from w w  w.jav a  2  s  .c o  m*/
}

Related

  1. convertURIToURL(URI uri)
  2. convertURLToFile(URL url)
  3. convertUrlToFilename(URL url)
  4. convertUrlToFilePath(URL url)
  5. convertUrlToHostNameAsNodeName(String url)