|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.commons.resource.ResourceStreamSourceAbstract
public abstract class ResourceStreamSourceAbstract
| Constructor Summary | |
|---|---|
ResourceStreamSourceAbstract()
|
|
| Method Summary | |
|---|---|
protected abstract java.io.InputStream |
doReadResource(java.lang.String resourcePath)
Mandatory hook method; subclasses can return either null or throw an exception if the resource could not be found. |
java.io.InputStream |
readResource(java.lang.String resourcePath)
Returns an InputStream opened for the resource path, or
null otherwise. |
java.io.OutputStream |
writeResource(java.lang.String resourcePath)
Default implementation returns null (that is, not supported). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.metamodel.commons.resource.ResourceStreamSource |
|---|
getName |
| Constructor Detail |
|---|
public ResourceStreamSourceAbstract()
| Method Detail |
|---|
public final java.io.InputStream readResource(java.lang.String resourcePath)
ResourceStreamSourceInputStream opened for the resource path, or
null otherwise.
readResource in interface ResourceStreamSource
protected abstract java.io.InputStream doReadResource(java.lang.String resourcePath)
throws java.io.IOException
java.io.IOExceptionpublic java.io.OutputStream writeResource(java.lang.String resourcePath)
writeResource in interface ResourceStreamSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||