mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
20 lines
491 B
Java
20 lines
491 B
Java
package java.net;
|
|
|
|
public final class URL {
|
|
// private final String protocol;
|
|
// private final String host;
|
|
// private final int port;
|
|
// private final String file;
|
|
|
|
public URL(String s) throws MalformedURLException {
|
|
// int colon = s.indexOf(':');
|
|
// int slash = s.indexOf('/');
|
|
// if (colon > 0 && (slash < 0 || colon < slash)) {
|
|
// protocol = s.substring(0, colon);
|
|
// // todo
|
|
// } else {
|
|
// throw new MalformedURLException(s);
|
|
// }
|
|
}
|
|
}
|