Package org.crsh.vfs.spi.ram

Examples of org.crsh.vfs.spi.ram.RAMDriver.open()


    driver.add("/foo", "bar");
    Path root = driver.root();
    assertEquals(Path.get("/"), root);
    Path foo = driver.child(root, "foo");
    assertNotNull(foo);
    Iterator<InputStream> in = driver.open(foo);
    assertTrue(in.hasNext());
    String file = Utils.readAsUTF8(in.next());
    assertFalse(in.hasNext());
    assertEquals("bar", file);
  }
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.