Package org.jboss.virtual.plugins.context.memory

Examples of org.jboss.virtual.plugins.context.memory.MemoryContext.findChild()


      String host = u.getHost();
      MemoryContext ctx = MemoryContextFactory.getInstance().find(host);
      if (ctx == null)
         throw new IOException("vfs does not exist: " + u.toString());

      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


   {
      String host = u.getHost();
      MemoryContext ctx = MemoryContextFactory.getInstance().find(host);

      if (ctx == null) throw new IOException("vfs does not exist: " + u.toString());
      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

/* 45 */     String host = u.getHost();
/* 46 */     MemoryContext ctx = MemoryContextFactory.getInstance().find(host);
/* 47 */     if (ctx == null) {
/* 48 */       throw new IOException("vfs does not exist: " + u.toString());
/*    */     }
/* 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

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.