Package org.eclipse.osgi.service.urlconversion

Examples of org.eclipse.osgi.service.urlconversion.URLConverter


   * @return the converted file URL or the original URL passed in if it is
   *   not recognized by this converter
   * @throws IOException if an error occurs during the conversion
   */
  public static URL toFileURL(URL url) throws IOException {
    URLConverter converter = Activator.getURLConverter(url);
    return converter == null ? url : converter.toFileURL(url);
  }
View Full Code Here


   * @return the resolved URL or the original if the protocol is unknown to this converter
   * @exception IOException if unable to resolve URL
   * @throws IOException if an error occurs during the resolution
   */
  public static URL resolve(URL url) throws IOException {
    URLConverter converter = Activator.getURLConverter(url);
    return converter == null ? url : converter.resolve(url);
  }
View Full Code Here

   * @return the converted file URL or the original URL passed in if it is
   *   not recognized by this converter
   * @throws IOException if an error occurs during the conversion
   */
  public static URL toFileURL(URL url) throws IOException {
    URLConverter converter = Activator.getURLConverter(url);
    return converter == null ? url : converter.toFileURL(url);
  }
View Full Code Here

   * @return the resolved URL or the original if the protocol is unknown to this converter
   * @exception IOException if unable to resolve URL
   * @throws IOException if an error occurs during the resolution
   */
  public static URL resolve(URL url) throws IOException {
    URLConverter converter = Activator.getURLConverter(url);
    return converter == null ? url : converter.resolve(url);
  }
View Full Code Here

      URL url = RobotExecutor.class.getResource("RobotExecutor.class");
      if( "bundleresource".equals(url.getProtocol()) ) {
         Bundle b = FrameworkUtil.getBundle(RobotExecutor.class);
        
         URL rootEntry = b.getEntry("/");
         URLConverter converter = getURLConverter(b.getBundleContext(), rootEntry);
         if (converter != null) {
           try {
          rootEntry = converter.resolve(rootEntry);
          if (rootEntry != null && "file".equals(rootEntry.getProtocol())) {
            File installLocation = new File(rootEntry.getPath());
            String classpathSep = System.getProperty("path.separator");
           
            rv = new File(installLocation,"JemmyCore.jar").getAbsolutePath();
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.service.urlconversion.URLConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.