Package org.jboss.virtual

Examples of org.jboss.virtual.VirtualFile.openStream()


      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.openStream();
         }
         catch (Exception ignored)
         {
            log.debug("Error opening stream for " + child, ignored);
            return null;
View Full Code Here


      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.openStream();
         }
         catch (Exception ignored)
         {
            log.debug("Error opening stream for " + child, ignored);
            return null;
View Full Code Here

      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.openStream();
         }
         catch (Exception ignored)
         {
            log.debug("Error opening stream for " + child, ignored);
            return null;
View Full Code Here

         throw new ClassNotFoundException(name);
      try
      {
         byte[] tmp = new byte[128];
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         InputStream is = classFile.openStream();
         int length;
         while ((length = is.read(tmp)) > 0)
         {
            baos.write(tmp, 0, length);
         }
View Full Code Here

/* 355 */         expWarFile.delete();
/* 356 */         if (!expWarFile.mkdir())
/* 357 */           throw new DeploymentException("Was unable to mkdir: " + expWarFile);
/* 358 */         this.log.debug("Unpacking war to: " + expWarFile);
/* 359 */         VirtualFile root = unit.getRoot();
/* 360 */         InputStream is = root.openStream();
/* 361 */         JarUtils.unjar(is, expWarFile);
/* 362 */         is.close();
/* 363 */         expWarUrl = expWarFile.toURL();
/*     */
/* 366 */         VirtualFile warVF = unit.getRoot();
View Full Code Here

/*     */       }
/*     */
/* 153 */       VirtualFile ejbjar = unit.getMetaDataFile("ejb-jar.xml");
/* 154 */       if (ejbjar != null)
/*     */       {
/* 156 */         InputStream is = ejbjar.openStream();
/* 157 */         boolean has30EjbJarXml = EJB3Deployer.has30EjbJarXml(is);
/* 158 */         is.close();
/* 159 */         if (!has30EjbJarXml) {
/* 160 */           return;
/*     */         }
View Full Code Here

/*     */         }
/* 158 */         scan = false;
/*     */       }
/* 160 */       if (jbossAppXml != null)
/*     */       {
/* 162 */         InputStream in = jbossAppXml.openStream();
/*     */         try
/*     */         {
/* 165 */           appMetaData = (JBossAppMetaData)unmarshaller.unmarshal(in, this.resolver);
/*     */         }
/*     */         finally
View Full Code Here

/* 175 */     VirtualFile child = findChild(path);
/* 176 */     if (child != null)
/*     */     {
/*     */       try
/*     */       {
/* 180 */         return child.openStream();
/*     */       }
/*     */       catch (Exception ignored)
/*     */       {
/* 184 */         log.trace("Error opening stream for " + child, ignored);
/* 185 */         return null;
View Full Code Here

      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.openStream();
         }
         catch (Exception ignored)
         {
            log.trace("Error opening stream for " + child, ignored);
            return null;
View Full Code Here

      URL url = getResource("/vfs/test/nested/nested.jar");
      VirtualFile root = VFS.getRoot(url);
      assertNotNull(root);

      VirtualFile child = root.getChild("complex.jar/META-INF/MANIFEST.MF");
      InputStream in = child.openStream();
      in.close();
   }
}
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.