org.richfaces.cdk.vfs.file
Class FileVFSRoot

java.lang.Object
  extended by org.richfaces.cdk.vfs.file.FileVFSFile
      extended by org.richfaces.cdk.vfs.file.FileVFSRoot
All Implemented Interfaces:
Closeable, VFSRoot, VirtualFile

public class FileVFSRoot
extends FileVFSFile
implements VFSRoot

Author:
Nick Belaevski

Constructor Summary
FileVFSRoot(File dir)
           
 
Method Summary
 void close()
           
 InputStream getInputStream()
           
 String getName()
           
 VFSType getType()
           
 void initialize()
           
 URL toURL()
           
 
Methods inherited from class org.richfaces.cdk.vfs.file.FileVFSFile
getChild, getChild, getChildren, getFile, getRelativePath, isDirectory, isFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.richfaces.cdk.vfs.VirtualFile
getChild, getChild, getChildren, getRelativePath, isDirectory, isFile
 

Constructor Detail

FileVFSRoot

public FileVFSRoot(File dir)
Method Detail

getType

public VFSType getType()
Specified by:
getType in interface VFSRoot

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface VirtualFile
Overrides:
getInputStream in class FileVFSFile
Throws:
IOException

getName

public String getName()
Specified by:
getName in interface VirtualFile
Overrides:
getName in class FileVFSFile

initialize

public void initialize()
                throws IOException
Specified by:
initialize in interface VFSRoot
Throws:
IOException

toURL

public URL toURL()
          throws MalformedURLException
Specified by:
toURL in interface VFSRoot
Throws:
MalformedURLException


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.