For the below piece of code I get an IllegalArgumentException
import java.io.*;
import java.net.*;
public class Test1
{
public static void main(String args[])
{
try {
URL url = new URL("file:/test/aa%bb/c");
InputStream is = url.openStream();
} catch (Exception e)
{
e.printStackTrace();
}
}
}
I '%' an accepted character in URL constructor, If its not, is there any documentation stating its not allowed?
Thanks !
import java.io.*;
import java.net.*;
public class Test1
{
public static void main(String args[])
{
try {
URL url = new URL("file:/test/aa%bb/c");
InputStream is = url.openStream();
} catch (Exception e)
{
e.printStackTrace();
}
}
}
I '%' an accepted character in URL constructor, If its not, is there any documentation stating its not allowed?
Thanks !