public class RavenDirectoryFileSystemView extends FileSystemView
FileSystemView
which is able to create new folders.Constructor and Description |
---|
RavenDirectoryFileSystemView(File rootDirectory,
File defaultDirectory)
Creates a new
FileSystemView with the directory given by rootDirectory as
root directory and defaultDirectory as default directory. |
Modifier and Type | Method and Description |
---|---|
File |
createNewFolder(File containingDir) |
File |
getDefaultDirectory() |
File |
getHomeDirectory() |
File[] |
getRoots() |
createFileObject, createFileObject, getChild, getFiles, getFileSystemView, getParentDirectory, getSystemDisplayName, getSystemIcon, getSystemTypeDescription, isComputerNode, isDrive, isFileSystem, isFileSystemRoot, isFloppyDrive, isHiddenFile, isParent, isRoot, isTraversable
public RavenDirectoryFileSystemView(File rootDirectory, File defaultDirectory)
FileSystemView
with the directory given by rootDirectory
as
root directory and defaultDirectory
as default directory.rootDirectory
- the root directorydefaultDirectory
- the default directorypublic File createNewFolder(File containingDir) throws IOException
createNewFolder
in class FileSystemView
IOException
public File getDefaultDirectory()
getDefaultDirectory
in class FileSystemView
public File getHomeDirectory()
getHomeDirectory
in class FileSystemView
public File[] getRoots()
getRoots
in class FileSystemView