org.sonatype.gshell.file
Class FileSystemAccessImpl

java.lang.Object
  extended by org.sonatype.gshell.file.FileSystemAccessImpl
All Implemented Interfaces:
FileSystemAccess

public class FileSystemAccessImpl
extends Object
implements FileSystemAccess

FileSystemAccess component.

Since:
2.3
Author:
Jason Dillon

Constructor Summary
FileSystemAccessImpl(javax.inject.Provider<Variables> variables)
           
 
Method Summary
 File getShellHomeDir()
           
 File getUserDir()
           
 File getUserHomeDir()
           
 boolean hasChildren(File file)
           
 File resolveDir(String name)
           
 File resolveFile(File baseDir, String path)
           
 File resolveFile(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemAccessImpl

@Inject
public FileSystemAccessImpl(javax.inject.Provider<Variables> variables)
Method Detail

resolveDir

public File resolveDir(String name)
                throws IOException
Specified by:
resolveDir in interface FileSystemAccess
Throws:
IOException

getShellHomeDir

public File getShellHomeDir()
                     throws IOException
Specified by:
getShellHomeDir in interface FileSystemAccess
Throws:
IOException

getUserDir

public File getUserDir()
                throws IOException
Specified by:
getUserDir in interface FileSystemAccess
Throws:
IOException

getUserHomeDir

public File getUserHomeDir()
                    throws IOException
Specified by:
getUserHomeDir in interface FileSystemAccess
Throws:
IOException

resolveFile

public File resolveFile(File baseDir,
                        String path)
                 throws IOException
Specified by:
resolveFile in interface FileSystemAccess
Throws:
IOException

resolveFile

public File resolveFile(String path)
                 throws IOException
Specified by:
resolveFile in interface FileSystemAccess
Throws:
IOException

hasChildren

public boolean hasChildren(File file)
Specified by:
hasChildren in interface FileSystemAccess


Copyright © 2008-2011 Sonatype. All Rights Reserved.