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, setLastModified
setContents, setContents, setContents, setContents, setContents
createFrom, delete, delete, exists, getChild, getContents, getContents, getFullyQualifiedName, getName, getResourceFactory, getResourceInputStream, getUnderlyingResourceObject, listResources, listResources, reify
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, supports
DirectoryResource 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 ResourceException
ResourceException
DirectoryResource 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
ResourceException
ResourceException
Copyright © 2014 JBoss by Red Hat. All rights reserved.