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, isTraversablepublic 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 FileSystemViewIOExceptionpublic File getDefaultDirectory()
getDefaultDirectory in class FileSystemViewpublic File getHomeDirectory()
getHomeDirectory in class FileSystemViewpublic File[] getRoots()
getRoots in class FileSystemView