java.net.URL mock
This commit is contained in:
parent
dfcb49991c
commit
c733c8f7dc
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user