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, getLastModified, getParent, getSize, isDirectory, isExecutable, isReadable, isStale, isWritable, mkdir, mkdirs, monitor, monitor, refresh, renameTo, renameTo, setLastModifiedsetContents, setContents, setContents, setContents, setContentscreateFrom, delete, delete, exists, getChild, getContents, getContents, getFullyQualifiedName, getName, getResourceFactory, getResourceInputStream, getUnderlyingResourceObject, listResources, listResources, reifygetFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, supportsDirectoryResource 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 © 2014 JBoss by Red Hat. All rights reserved.