org.crsh.vfs
Class File

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

public final class File
extends Object

Version:
$Revision$
Author:
Julien Viet

Field Summary
private  LinkedHashMap<Key,File> children
          .
private  FS fs
          .
private  LinkedList<Handle<?>> handles
          .
private static org.slf4j.Logger log
          .
private  Path path
          .
 
Constructor Summary
File(FS fs, Path path)
           
 
Method Summary
 File child(String name, boolean dir)
           
 Iterable<File> children()
           
(package private)  LinkedList<Handle<?>> getHandles()
           
 String getName()
           
 Path getPath()
           
 Resource getResource()
           
 URL getURL()
           
 Iterable<URL> getURLs()
           
 boolean isDir()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.slf4j.Logger log
.


fs

private final FS fs
.


path

private final Path path
.


handles

private LinkedList<Handle<?>> handles
.


children

private LinkedHashMap<Key,File> children
.

Constructor Detail

File

public File(FS fs,
            Path path)
Method Detail

getPath

public Path getPath()

isDir

public boolean isDir()

getName

public String getName()

getResource

public Resource getResource()
                     throws IOException
Throws:
IOException

getURL

public URL getURL()
           throws IOException
Throws:
IOException

getURLs

public Iterable<URL> getURLs()
                      throws IOException
Throws:
IOException

child

public File child(String name,
                  boolean dir)
           throws IOException
Throws:
IOException

children

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

getHandles

LinkedList<Handle<?>> getHandles()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 eXo Platform SAS. All Rights Reserved.