public class NonexistentVfsDirectory extends AbstractVfsDirectory
Copyright 2009 Partner Software, Inc.
| Constructor and Description |
|---|
NonexistentVfsDirectory(Vfs vfs,
Path path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Whether the Vfs node exists.
|
java.net.URI |
getUri()
URI for this VfsNode.
|
java.net.URL |
getUrl()
URL for this VfsNode.
|
java.util.List<VfsDirectory> |
listDirectories()
Lists all directories (not files) in this directory.
|
java.util.List<VfsFile> |
listFiles()
Lists all files (not directories) in this directory.
|
java.util.List<VfsNode> |
listNodes()
Lists all nodes (both directories and files) in this directory.
|
void |
make()
Creates the node and any ancestor directories needed to contain it.
|
void |
remove()
Removes the directory AND ALL ITS CONTENTS.
|
java.io.File |
toFile()
java.io.File for this VfsNode.
|
copyTo, copyTo, directoryFor, directoryFor, directoryNamed, equals, fileFor, fileFor, fileNamed, findDirectories, findDirectoriesExcluding, findDirectoriesLike, findFiles, findFilesExcluding, findFilesLike, findFilesWithExtension, findNodes, findNodesLike, getAbsolutePath, getBaseName, getDirectory, getExtension, getLastModified, getLastModifiedMillis, getName, getPath, getVfs, hashCode, isBackup, isHidden, listDirectoriesExcluding, listDirectoriesLike, listFilesExcluding, listFilesLike, listFilesWithBaseName, listFilesWithExtension, listNodesLike, moveTo, moveTo, renameTo, setLastModified, setLastModifiedMillis, toStringpublic boolean exists()
throws java.io.IOException
VfsNodeVfsNode.make() to create the node if it does not exist.exists in interface VfsDirectoryexists in interface VfsNodeexists in class AbstractVfsDirectoryjava.io.IOException - if it can't tell for some reason.public java.util.List<VfsDirectory> listDirectories() throws java.io.IOException
VfsDirectorylistDirectories in interface VfsDirectorylistDirectories in class AbstractVfsDirectoryjava.io.IOExceptionpublic java.util.List<VfsFile> listFiles() throws java.io.IOException
VfsDirectorylistFiles in interface VfsDirectorylistFiles in class AbstractVfsDirectoryjava.io.IOExceptionpublic java.util.List<VfsNode> listNodes() throws java.io.IOException
VfsDirectorylistNodes in interface VfsDirectorylistNodes in class AbstractVfsDirectoryjava.io.IOException - if listing failspublic void make()
throws java.io.IOException
VfsNodemake in interface VfsDirectorymake in interface VfsNodemake in class AbstractVfsDirectoryjava.io.IOException - if it can't.public void remove()
throws java.io.IOException
VfsDirectoryjava.io.IOExceptionpublic java.net.URI getUri()
VfsNodepublic java.net.URL getUrl()
VfsNodepublic java.io.File toFile()
VfsNode