public abstract class ResourceStreamSourceAbstract extends Object implements ResourceStreamSource
| Constructor and Description |
|---|
ResourceStreamSourceAbstract() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract InputStream |
doReadResource(String resourcePath)
Mandatory hook method; subclasses can return either null or
throw an exception if the resource could not be found.
|
InputStream |
readResource(String resourcePath)
Returns an
InputStream opened for the resource path, or
null otherwise. |
String |
toString() |
OutputStream |
writeResource(String resourcePath)
Default implementation returns null (that is, not supported).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamepublic ResourceStreamSourceAbstract()
public final InputStream readResource(String resourcePath)
ResourceStreamSourceInputStream opened for the resource path, or
null otherwise.readResource in interface ResourceStreamSourceprotected abstract InputStream doReadResource(String resourcePath) throws IOException
IOExceptionpublic OutputStream writeResource(String resourcePath)
writeResource in interface ResourceStreamSourceCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.