Package org.jboss.virtual.plugins.context

Source Code of org.jboss.virtual.plugins.context.VfsArchiveBrowserFactory

/*    */ package org.jboss.virtual.plugins.context;
/*    */
/*    */ import java.io.IOException;
/*    */ import java.net.URL;
/*    */ import java.util.Iterator;
/*    */ import org.jboss.util.file.ArchiveBrowser.Filter;
/*    */ import org.jboss.util.file.ArchiveBrowserFactory;
/*    */ import org.jboss.virtual.VirtualFile;
/*    */ import org.jboss.virtual.plugins.vfs.VirtualFileURLConnection;
/*    */
/*    */ /** @deprecated */
/*    */ public class VfsArchiveBrowserFactory
/*    */   implements ArchiveBrowserFactory
/*    */ {
/*    */   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);
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.virtual.plugins.context.VfsArchiveBrowserFactory
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.virtual.plugins.context.VfsArchiveBrowserFactory

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.