com.atlassian.jira.util
Class FileSystemFileFactory

java.lang.Object
  extended by com.atlassian.jira.util.FileSystemFileFactory
All Implemented Interfaces:
FileFactory

public class FileSystemFileFactory
extends Object
implements FileFactory


Constructor Summary
FileSystemFileFactory()
          Creates a new FileFactory.
 
Method Summary
 File getFile(String absoluteFilename)
          Creates a File object for the file with the given path.
 void removeDirectory(File directory)
          Removes a directory.
 void removeDirectoryIfExists(String directoryName)
          Removes a directory if it exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemFileFactory

public FileSystemFileFactory()
Creates a new FileFactory.

Method Detail

getFile

public File getFile(String absoluteFilename)
Description copied from interface: FileFactory
Creates a File object for the file with the given path.

Specified by:
getFile in interface FileFactory
Parameters:
absoluteFilename - a String containing an absolute path name
Returns:
a new File

removeDirectoryIfExists

public void removeDirectoryIfExists(String directoryName)
Description copied from interface: FileFactory
Removes a directory if it exists.

Specified by:
removeDirectoryIfExists in interface FileFactory
Parameters:
directoryName - a String containing a directory path

removeDirectory

public void removeDirectory(File directory)
Description copied from interface: FileFactory
Removes a directory.

Specified by:
removeDirectory in interface FileFactory
Parameters:
directory - a File object


Copyright © 2002-2013 Atlassian. All Rights Reserved.