|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.resource.base.AbstractDataResourceProxy
net.sf.mmm.util.resource.base.AbstractBrowsableResourceProxy
public abstract class AbstractBrowsableResourceProxy
This is an abstract implementation of the BrowsableResource interface
that delegates to another BrowsableResource.
| Constructor Summary | |
|---|---|
AbstractBrowsableResourceProxy()
The constructor. |
|
| Method Summary | |
|---|---|
Iterable<BrowsableResource> |
getChildResources()
This method iterates the immediate child- resources contained in this BrowsableResource. |
Iterable<BrowsableResource> |
getChildResources(Filter<BrowsableResource> filter)
This method iterates the immediate child- resources contained in this BrowsableResource and are
accepted by the given filter. |
protected abstract BrowsableResource |
getDelegate()
This method gets the DataResource this proxy delegates to. |
boolean |
isFolder()
This method determines if this BrowsableResource is a
folder that potentially contains other resources. |
OutputStream |
openOutputStream()
This method opens an output-stream in order to write data to the resource. |
| Methods inherited from class net.sf.mmm.util.resource.base.AbstractDataResourceProxy |
|---|
getLastModificationDate, getName, getPath, getSize, getUri, getUrl, isAvailable, isData, isModifiedSince, navigate, openStream, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.mmm.util.resource.api.DataResource |
|---|
getLastModificationDate, getName, getPath, getSize, getUri, getUrl, isAvailable, isData, isModifiedSince, navigate, openStream |
| Constructor Detail |
|---|
public AbstractBrowsableResourceProxy()
| Method Detail |
|---|
protected abstract BrowsableResource getDelegate()
DataResource this proxy delegates to.
getDelegate in class AbstractDataResourceProxypublic Iterable<BrowsableResource> getChildResources()
resources contained in this BrowsableResource.folder, this method will always return an
empty Iterable.
getChildResources in interface BrowsableResourceIterable of the child-resources.public Iterable<BrowsableResource> getChildResources(Filter<BrowsableResource> filter)
resources contained in this BrowsableResource and are
accepted by the given filter.
getChildResources in interface BrowsableResourcefilter - is the Filter applied to the
child-resources.
Iterable of the child-resources.public boolean isFolder()
BrowsableResource is a
folder that potentially contains other resources. Otherwise if this is no folder, BrowsableResource.getChildResources()
will be empty (return an empty Iterable). However
BrowsableResource.getChildResources() can also be empty, if this is a folder.BrowsableResource is
containing data, please use DataResource.isAvailable().
Please note that BrowsableResource.isFolder() and DataResource.isAvailable() can both
return true or both return false.
isFolder in interface BrowsableResourcetrue if this is a folder, false
otherwise.
public OutputStream openOutputStream()
throws ResourceNotWritableException
openOutputStream in interface DataResourceopenOutputStream in class AbstractDataResourceProxyOutputStream to write to the resource.
ResourceNotWritableException - if the resource is NOT writable (e.g.
read-only).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||