()
| 126 | } |
| 127 | |
| 128 | public URLConnection openConnection() throws IOException { |
| 129 | if ("file".equals(getProtocol())) { |
| 130 | return new FileURLConnection(new File(u)); |
| 131 | } |
| 132 | return new HttpURLConnection(u.toASCIIString()); |
| 133 | } |
| 134 | |
| 135 | public final InputStream openStream() throws IOException { |
| 136 | return openConnection().getInputStream(); |