Examples of VirtualFileURLConnection


Examples of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection

/*    */     }
/*    */
/* 69 */     if (vfsurl == null) {
/* 70 */       throw new IOException("vfsfile does not exist: " + u.toString());
/*    */     }
/* 72 */     return new VirtualFileURLConnection(u, vfsurl, relative);
/*    */   }
View Full Code Here

Examples of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection

/*    */     }
/* 50 */     VirtualFile vf = ctx.findChild(ctx.getRoot(), u.getPath()).getVirtualFile();
/* 51 */     if (vf == null) {
/* 52 */       throw new IOException("vfs does not exist: " + u.toString());
/*    */     }
/* 54 */     return new VirtualFileURLConnection(u, vf);
/*    */   }
View Full Code Here

Examples of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection

/* 42 */     String urlString = u.toString();
/* 43 */     int index = urlString.indexOf("!/");
/* 44 */     String file = urlString.substring(3, index + 2);
/* 45 */     String path = urlString.substring(index + 2);
/* 46 */     URL url = new URL(file);
/* 47 */     return new VirtualFileURLConnection(u, url, path);
/*    */   }
View Full Code Here

Examples of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection

/*    */ {
/*    */   public Iterator create(URL url, ArchiveBrowser.Filter filter)
/*    */   {
/*    */     try
/*    */     {
/* 47 */       VirtualFileURLConnection conn = (VirtualFileURLConnection)url.openConnection();
/* 48 */       VirtualFile vf = conn.getVirtualFile();
/* 49 */       return new VfsArchiveBrowser(filter, vf);
/*    */     }
/*    */     catch (IOException e) {
/*    */     }
/* 53 */     throw new RuntimeException("Unable to browse URL: " + url, e);
View Full Code Here

Examples of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection

/* 49 */     String path = url.getPath();
/* 50 */     VirtualFileHandler vf = this.context.getRoot().findChild(path);
/* 51 */     if (vf == null) {
/* 52 */       throw new IOException(path + " was not found in Assembled VFS context " + this.context.getName());
/*    */     }
/* 54 */     return new VirtualFileURLConnection(url, vf.getVirtualFile());
/*    */   }
View Full Code Here

Examples of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection

/*    */     }
/* 49 */     VirtualFile vf = directory.findChild(u.getPath());
/* 50 */     if (vf == null) {
/* 51 */       throw new IOException("vfs does not exist: " + u.toString());
/*    */     }
/* 53 */     return new VirtualFileURLConnection(u, vf);
/*    */   }
View Full Code Here

Examples of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection

      if (vfsurl == null)
         throw new IOException("VFS file does not exist: " + url);
      if (queryStr != null)
         vfsurl = new URL(vfsurl + "?" + queryStr);
     
      return new VirtualFileURLConnection(url, vfsurl, relative);
   }
View Full Code Here

Examples of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection

      }
      if (!"vfszip".equals(url.getProtocol()))
      {
         throw new IllegalArgumentException("Only jar URL are accepted, not " + url.getProtocol());
      }
      VirtualFileURLConnection conn = (VirtualFileURLConnection) url.openConnection();
      VirtualFile vFile = conn.getContent();
     
      visit(vFile, visitor, filter);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.