public interface DirectoryResource extends FileResource<DirectoryResource>
| Modifier and Type | Method and Description |
|---|---|
DirectoryResource |
getChildDirectory(String name)
Obtain a reference to the child
DirectoryResource. |
<E,T extends Resource<E>> |
getChildOfType(Class<T> type,
String name)
Using the given type, obtain a reference to the child resource of the given type.
|
DirectoryResource |
getOrCreateChildDirectory(String name)
Obtain a reference to the child
DirectoryResource. |
createNewFile, createTempResource, deleteOnExit, isDirectory, isStale, markUpToDate, mkdir, mkdirs, renameTo, renameTo, setContents, setContents, setContentscreateFrom, delete, delete, exists, getChild, getFullyQualifiedName, getName, getParent, getResourceFactory, getResourceInputStream, getUnderlyingResourceObject, listResources, listResources, reifyDirectoryResource getChildDirectory(String name) throws ResourceException
DirectoryResource. If that resource does not exist, return a new instance.
If the resource exists and is not a DirectoryResource, throw ResourceExceptionResourceExceptionDirectoryResource getOrCreateChildDirectory(String name)
DirectoryResource. If that resource does not exist, return a new instance
and attempt to create the a directory of the given name. If the resource exists and is not a
DirectoryResource, throw ResourceException<E,T extends Resource<E>> T getChildOfType(Class<T> type, String name) throws ResourceException
ResourceExceptionResourceExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.