|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.forge.resources.AbstractResource<URL>
org.jboss.forge.resources.URLResource
public class URLResource
Represents an URL
| Field Summary |
|---|
| Fields inherited from class org.jboss.forge.resources.AbstractResource |
|---|
flags, parent, resourceFactory |
| Constructor Summary | |
|---|---|
URLResource(ResourceFactory factory,
URL url)
|
|
| Method Summary | |
|---|---|
Resource<URL> |
createFrom(URL url)
Create a new resource instance for the target resource reference of the type that this current resource is. |
boolean |
delete()
Delete this resource, return true if successful, false if not. |
boolean |
delete(boolean recursive)
Delete this resource, return true if successful, false if not. |
protected List<Resource<?>> |
doListResources()
Strategy method for returning child resources. |
boolean |
exists()
Return true if this Resource exists, return false if not. |
Resource<?> |
getChild(String name)
Get a child of this resource. |
String |
getName()
Return the common name of the resource. |
InputStream |
getResourceInputStream()
Get the InputStream represented by this Resource. |
URL |
getUnderlyingResourceObject()
Get the underlying object represented by this Resource |
| Methods inherited from class org.jboss.forge.resources.AbstractResource |
|---|
equals, getFlags, getFullyQualifiedName, getParent, getResourceFactory, hashCode, isFlagSet, listResources, listResources, reify, setFlag, unsetFlag |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLResource(ResourceFactory factory,
URL url)
| Method Detail |
|---|
public boolean delete()
throws UnsupportedOperationException
Resource
UnsupportedOperationException - if deleting is not supported by the underlying implementation.
public boolean delete(boolean recursive)
throws UnsupportedOperationException
Resource
recursive - if false and this resource both supports recursive deletion and contains children, deletion will
not occur; otherwise, if true, deletion will propagate to all child resources. Implementations may
choose simply to delegate to Resource.delete()
UnsupportedOperationException - if deleting is not supported by the underlying implementation.public String getName()
Resource
public Resource<URL> createFrom(URL url)
Resource
url - The target reference to create the resource instance from.
public URL getUnderlyingResourceObject()
ResourceResource
public InputStream getResourceInputStream()
ResourceInputStream represented by this Resource.
public Resource<?> getChild(String name)
Resource
public boolean exists()
ResourceResource exists, return false if not.
protected List<Resource<?>> doListResources()
AbstractResource
doListResources in class AbstractResource<URL>
|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||