java.net.URL mock
This commit is contained in:
@@ -14,4 +14,8 @@ public class URL {
|
||||
public URL(String protocol, String hostName, int port, String path) {
|
||||
mPath = "http://" +hostName +"/" + path;
|
||||
}
|
||||
|
||||
public URL(String url) throws MalformedURLException {
|
||||
mPath = url;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user