org.crsh.vfs
Class File

java.lang.Object
  extended by org.crsh.vfs.File

public final class File
extends Object


Field Summary
private  LinkedHashMap<String,File> children
          .
private  FS fs
          .
private  LinkedList<Handle<?>> handles
          .
private  Path path
          .
 
Constructor Summary
File(FS fs, Path path)
           
 
Method Summary
 File child(String name)
           
 Iterable<File> children()
           
(package private)
<H> Handle<H>
getHandle(FSDriver<H> driver, Path path)
           
(package private)  LinkedList<Handle<?>> getHandles()
           
 String getName()
           
 Path getPath()
           
 Resource getResource()
           
 Iterable<Resource> getResources()
           
 boolean hasChildren()
           
private
<H> H
resolve(FSDriver<H> driver, H current, Path path)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fs

private final FS fs
.


path

private final Path path
.


handles

private LinkedList<Handle<?>> handles
.


children

private LinkedHashMap<String,File> children
.

Constructor Detail

File

public File(FS fs,
            Path path)
Method Detail

getPath

public Path getPath()

getName

public String getName()

hasChildren

public boolean hasChildren()
                    throws IOException
Throws:
IOException

getResource

public Resource getResource()
                     throws IOException
Throws:
IOException

getResources

public Iterable<Resource> getResources()
                                throws IOException
Throws:
IOException

child

public File child(String name)
           throws IOException
Throws:
IOException

children

public Iterable<File> children()
                        throws IOException
Throws:
IOException

getHandles

LinkedList<Handle<?>> getHandles()

getHandle

<H> Handle<H> getHandle(FSDriver<H> driver,
                        Path path)
              throws IOException
Throws:
IOException

resolve

private <H> H resolve(FSDriver<H> driver,
                      H current,
                      Path path)
           throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 eXo Platform SAS. All Rights Reserved.