|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.io.vfs.AbstractVfsDirectory
com.partnersoft.io.vfs.NonexistentVfsDirectory
public class NonexistentVfsDirectory
A VfsDirectory handle for a directory that does not exist in a read-only VFS.
Copyright 2009 Partner Software, Inc.
| Constructor Summary | |
|---|---|
NonexistentVfsDirectory(Vfs vfs,
Path path)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.partnersoft.io.vfs.AbstractVfsDirectory |
|---|
copyTo, copyTo, directoryFor, directoryFor, directoryNamed, equals, fileFor, fileFor, fileNamed, findDirectories, findDirectoriesLike, findFiles, findFilesLike, findFilesWithExtension, findNodes, findNodesLike, getAbsolutePath, getBaseName, getDirectory, getExtension, getName, getPath, getVfs, isBackup, isHidden, listDirectoriesLike, listFilesLike, listFilesWithBaseName, listFilesWithExtension, listNodesLike, moveTo, moveTo, renameTo, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NonexistentVfsDirectory(Vfs vfs,
Path path)
| Method Detail |
|---|
public 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
VfsDirectory
listDirectories in interface VfsDirectorylistDirectories in class AbstractVfsDirectoryjava.io.IOException
public java.util.List<VfsFile> listFiles()
throws java.io.IOException
VfsDirectory
listFiles in interface VfsDirectorylistFiles in class AbstractVfsDirectoryjava.io.IOException
public java.util.List<VfsNode> listNodes()
throws java.io.IOException
VfsDirectory
listNodes in interface VfsDirectorylistNodes in class AbstractVfsDirectoryjava.io.IOException - if listing fails
public void make()
throws java.io.IOException
VfsNode
make in interface VfsDirectorymake in interface VfsNodemake in class AbstractVfsDirectoryjava.io.IOException - if it can't.
public void remove()
throws java.io.IOException
VfsDirectory
java.io.IOExceptionpublic java.net.URI getUri()
VfsNode
public java.net.URL getUrl()
VfsNode
public java.io.File toFile()
VfsNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||