Examples of VirtualFileURLConnection


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

      VirtualFile vf = ctx.findChild(ctx.getRoot(), u.getPath()).getVirtualFile();
      if (vf == null)
         throw new IOException("vfs does not exist: " + u.toString());

      return new VirtualFileURLConnection(u, vf);
   }
View Full Code Here

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

      String path = url.getPath();
      VirtualFileHandler vf = context.getRoot().findChild(path);
      if (vf == null)
         throw new IOException(path + " was not found in Assembled VFS context " + context.getName());

      return new VirtualFileURLConnection(url, vf.getVirtualFile());
   }
View Full Code Here

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

      String path = url.getPath();
      VirtualFileHandler vf = context.getRoot().getChild(path);
      if (vf == null)
         throw new IOException(path + " was not found in Assembled VFS context " + context);

      return new VirtualFileURLConnection(url, vf.getVirtualFile());
   }
View Full Code Here

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

   @SuppressWarnings("deprecation")
   public Iterator create(URL url, ArchiveBrowser.Filter filter)
   {
      try
      {
         VirtualFileURLConnection conn = (VirtualFileURLConnection)url.openConnection();
         return new VfsArchiveBrowser(filter, conn.getContent());
      }
      catch (IOException e)
      {              
         throw new RuntimeException("Unable to browse URL: " + url, e);
      }
View Full Code Here

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

      }

      if (vfsurl == null)
         throw new IOException("VFS file does not exist: " + url);

      return new VirtualFileURLConnection(url, vfsurl, relative);
   }
View Full Code Here

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

      String urlString = u.toString();
      int index = urlString.indexOf("!/");
      String file = urlString.substring(3, index + 2); // strip out vfs
      String path = urlString.substring(index + 2);
      URL url = new URL(file);
      return new VirtualFileURLConnection(u, url, path);
   }
View Full Code Here

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

      VirtualFile vf = vfs.getChild(url.getPath());
      if (vf == null)
         throw new IOException("VFS does not exist: " + url);

      return new VirtualFileURLConnection(url, vf);
   }
View Full Code Here

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

      VirtualFile vf = directory.getChild(url.getPath());
      if (vf == null)
         throw new IOException("vfs does not exist: " + url);

      return new VirtualFileURLConnection(url, vf);
   }
View Full Code Here

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

      VirtualFile vf = ctx.getChild(ctx.getRoot(), u.getPath()).getVirtualFile();
      if (vf == null)
         throw new IOException("vfs does not exist: " + u.toString());

      return new VirtualFileURLConnection(u, vf);
   }
View Full Code Here

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

      }

      if (vfsurl == null)
         throw new IOException("vfsfile does not exist: " + u.toString());

      return new VirtualFileURLConnection(u, vfsurl, relative);
   }
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.