photospace.vfs
Class FileSystemImpl

java.lang.Object
  extended byphotospace.vfs.FileSystemImpl
All Implemented Interfaces:
FileSystem, java.io.Serializable

public class FileSystemImpl
extends java.lang.Object
implements java.io.Serializable, FileSystem

See Also:
Serialized Form

Constructor Summary
FileSystemImpl()
           
 
Method Summary
 java.io.File getAsset(java.lang.String path)
           
 java.io.File getDirectory(java.lang.String path)
           
 java.io.File getFile(java.lang.String path)
           
 java.lang.String getPath(java.io.File file)
           
 java.io.File getRoot()
           
 void setRoot(java.io.File root)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemImpl

public FileSystemImpl()
Method Detail

getRoot

public java.io.File getRoot()
Specified by:
getRoot in interface FileSystem

setRoot

public void setRoot(java.io.File root)
             throws java.io.IOException
Specified by:
setRoot in interface FileSystem
Throws:
java.io.IOException

getFile

public java.io.File getFile(java.lang.String path)
                     throws java.io.IOException
Specified by:
getFile in interface FileSystem
Throws:
java.io.IOException

getAsset

public java.io.File getAsset(java.lang.String path)
                      throws java.io.FileNotFoundException,
                             java.io.IOException
Specified by:
getAsset in interface FileSystem
Throws:
java.io.FileNotFoundException
java.io.IOException

getDirectory

public java.io.File getDirectory(java.lang.String path)
                          throws java.io.FileNotFoundException,
                                 java.io.IOException
Specified by:
getDirectory in interface FileSystem
Throws:
java.io.FileNotFoundException
java.io.IOException

getPath

public java.lang.String getPath(java.io.File file)
Specified by:
getPath in interface FileSystem