public InputStream getInputStream() throws IOException { if (!connected) { connect(); } return (in); }
public URL resolve(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) return ((BundleURLConnection) connection).getLocalURL(); return url; } }
public String getContentType() { if (contentType == null) { contentType = guessContentTypeFromName(bundleEntry.getName()); if (contentType == null) { if (!connected) { try { connect(); } catch (IOException e) { return (null); } } try { if (in.markSupported()) contentType = guessContentTypeFromStream(in); } catch (IOException e) { // do nothing } } } return (contentType); }
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; }
return (new BundleURLConnection(url, bundleEntry)); return (new BundleURLConnection(url, findBundleEntry(url, module)));
public String getContentType() { if (contentType == null) { contentType = guessContentTypeFromName(bundleEntry.getName()); if (contentType == null) { if (!connected) { try { connect(); } catch (IOException e) { return (null); } } try { if (in.markSupported()) contentType = guessContentTypeFromStream(in); } catch (IOException e) { // do nothing } } } return (contentType); }
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; }
return (new BundleURLConnection(url, bundleEntry)); return (new BundleURLConnection(url, findBundleEntry(url, module)));
public String getContentType() { if (contentType == null) { contentType = guessContentTypeFromName(bundleEntry.getName()); if (contentType == null) { if (!connected) { try { connect(); } catch (IOException e) { return (null); } } try { if (in.markSupported()) contentType = guessContentTypeFromStream(in); } catch (IOException e) { // do nothing } } } return (contentType); }
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); }
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; }
return (new BundleURLConnection(url, bundleEntry)); return (new BundleURLConnection(url, findBundleEntry(url, module)));
public String getContentType() { if (contentType == null) { contentType = guessContentTypeFromName(bundleEntry.getName()); if (contentType == null) { if (!connected) { try { connect(); } catch (IOException e) { return (null); } } try { if (in.markSupported()) contentType = guessContentTypeFromStream(in); } catch (IOException e) { // do nothing } } } return (contentType); }
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); }
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; }
return (new BundleURLConnection(url, bundleEntry)); return (new BundleURLConnection(url, findBundleEntry(url, module)));
public String getContentType() { if (contentType == null) { contentType = guessContentTypeFromName(bundleEntry.getName()); if (contentType == null) { if (!connected) { try { connect(); } catch (IOException e) { return (null); } } try { if (in.markSupported()) contentType = guessContentTypeFromStream(in); } catch (IOException e) { // do nothing } } } return (contentType); }
public URL resolve(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) return ((BundleURLConnection) connection).getLocalURL(); return url; } }