Package org.linkedin.util.io.ram

Examples of org.linkedin.util.io.ram.RAMDirectory


    RAMEntry entry = _root.getEntryByPath(path);

    if(entry instanceof RAMDirectory)
    {
      RAMDirectory ramDirectory = (RAMDirectory) entry;
      for(RAMEntry ramEntry : ramDirectory.ls())
      {
        String resourcePath = PathUtils.addPaths(path, ramEntry.name());
        filter.accept(new RAMResource(this,
                                      getFullPath(resourcePath),
                                      resourcePath));
View Full Code Here


  /**
   * Duplicates the directory structure on the filesystem in a RAMDirectory
   */
  private RAMDirectory createRAMDirectory(File root) throws IOException
  {
    RAMDirectory ramRoot = new RAMDirectory(SystemClock.instance(), "");

    populateRAMDirectory(ramRoot, root);

    return ramRoot;
  }
View Full Code Here

    for(String name : names)
    {
      File file = new File(directory, name);
      if(file.isDirectory())
      {
        RAMDirectory subdir = ramDirectory.mkdir(name);
        subdir.touch(file.lastModified());
        populateRAMDirectory(subdir, file);
      }
      else
      {
        ramDirectory.add(name, readContent(file)).touch(file.lastModified());
View Full Code Here

TOP

Related Classes of org.linkedin.util.io.ram.RAMDirectory

Copyright © 2018 www.massapicom. 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.