(String s)
| 24 | private String ref; |
| 25 | |
| 26 | public URL(String s) throws MalformedURLException { |
| 27 | int colon = s.indexOf(':'); |
| 28 | int slash = s.indexOf('/'); |
| 29 | if (colon > 0 && (slash < 0 || colon < slash)) { |
| 30 | handler = findHandler(s.substring(0, colon)); |
| 31 | handler.parseURL(this, s, colon + 1, s.length()); |
| 32 | } else { |
| 33 | throw new MalformedURLException(s); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | public String toString() { |
| 38 | return handler.toExternalForm(this); |
nothing calls this directly
no test coverage detected