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.Resource
IOException
Reader getReader() throws IOException
getReader
in interface org.kie.api.io.Resource
IOException
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.