Package org.jboss.virtual.spi

Examples of org.jboss.virtual.spi.VirtualFileHandler.toURL()


      assertNotNull("VF not null", handler.getVirtualFile());
      assertFalse("hasBeenModified == false", handler.hasBeenModified());
      assertFalse("hidden == false", handler.isHidden());
      assertFalse("nested == false", handler.isNested());
      assertNotNull("toURI not null", handler.toURI());
      assertNotNull("toURL not null", handler.toURL());
      assertNotNull("toVfsUrl not null", handler.toVfsUrl());

      ByteArrayOutputStream memOut = new ByteArrayOutputStream();
      VFSUtils.copyStreamAndClose(handler.openStream(), memOut);
      assertTrue("read archive content", memOut.size() == handler.getSize());
View Full Code Here


      assertNotNull("VF not null", handler.getVirtualFile());
      assertFalse("hasBeenModified == false", handler.hasBeenModified());
      assertFalse("hidden == false", handler.isHidden());
      assertFalse("nested == false", handler.isNested());
      assertNotNull("toURI not null", handler.toURI());
      assertNotNull("toURL not null", handler.toURL());
      assertNotNull("toVfsUrl not null", handler.toVfsUrl());

      memOut = new ByteArrayOutputStream();
      VFSUtils.copyStreamAndClose(handler.openStream(), memOut);
      assertTrue("read archive content", memOut.size() == handler.getSize());
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.