public InputStream getInputStream() throws IOException { if (!connected) { connect(); } return (in); }
protected boolean equals(URL url1, URL url2) { return sameFile(url1, url2); }
public URL resolve(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) return ((BundleURLConnection) connection).getLocalURL(); return url; } }
public URL toFileURL(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) { URL result = ((BundleURLConnection) connection).getFileURL(); /* If we got a connection then we know the resource exists in * the bundle but if connection.getFileURL returned null then there * was a problem extracting the file to disk. See bug 259241. **/ if (result == null) throw new IOException(NLS.bind(Msg.ECLIPSE_PLUGIN_EXTRACTION_PROBLEM, url)); return result; } return url; }
public InputStream getInputStream() throws IOException { if (!connected) { connect(); } return (in); }
protected boolean equals(URL url1, URL url2) { return sameFile(url1, url2); }
public URL resolve(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) return ((BundleURLConnection) connection).getLocalURL(); return url; } }
public URL toFileURL(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) { URL result = ((BundleURLConnection) connection).getFileURL(); /* If we got a connection then we know the resource exists in * the bundle but if connection.getFileURL returned null then there * was a problem extracting the file to disk. See bug 259241. **/ if (result == null) throw new IOException(NLS.bind(Msg.ECLIPSE_PLUGIN_EXTRACTION_PROBLEM, url)); return result; } return url; }
public InputStream getInputStream() throws IOException { if (!connected) { connect(); } return (in); }
protected boolean equals(URL url1, URL url2) { return sameFile(url1, url2); }
public URL resolve(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) return ((BundleURLConnection) connection).getLocalURL(); return url; } }
public InputStream getInputStream() throws IOException { if (!connected) { connect(); } return (in); }
protected boolean equals(URL url1, URL url2) { return sameFile(url1, url2); }
public URL resolve(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) return ((BundleURLConnection) connection).getLocalURL(); return url; } }
public InputStream getInputStream() throws IOException { if (!connected) { connect(); } return (in); }
protected boolean equals(URL url1, URL url2) { return sameFile(url1, url2); }
public URL resolve(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) return ((BundleURLConnection) connection).getLocalURL(); return url; } }
public InputStream getInputStream() throws IOException { if (!connected) { connect(); } return (in); }
protected boolean equals(URL url1, URL url2) { return sameFile(url1, url2); }
public URL resolve(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) return ((BundleURLConnection) connection).getLocalURL(); return url; } }