public interface Resource extends Serializable, org.kie.api.io.Resource
Generic interface to provide a Reader or InputStream for the underlying IO resource.
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Open an InputStream to the resource, the user must close this when finished.
|
Reader |
getReader()
Opens a Reader to the resource, the user most close this when finished.
|
InputStream getInputStream() throws IOException
getInputStream in interface org.kie.api.io.ResourceIOExceptionReader getReader() throws IOException
getReader in interface org.kie.api.io.ResourceIOExceptionCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.