Knowledge API Legacy5 Adapter 6.0.0.Beta5

org.drools.io
Interface Resource

All Superinterfaces:
org.kie.api.io.Resource, Serializable

public interface Resource
extends Serializable, org.kie.api.io.Resource

Generic interface to provide a Reader or InputStream for the underlying IO resource.


Method Summary
 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.
 
Methods inherited from interface org.kie.api.io.Resource
getConfiguration, getResourceType, getSourcePath, getTargetPath, setConfiguration, setResourceType, setSourcePath, setTargetPath
 

Method Detail

getInputStream

InputStream getInputStream()
                           throws IOException
Open an InputStream to the resource, the user must close this when finished.

Specified by:
getInputStream in interface org.kie.api.io.Resource
Returns:
Throws:
IOException

getReader

Reader getReader()
                 throws IOException
Opens a Reader to the resource, the user most close this when finished.

Specified by:
getReader in interface org.kie.api.io.Resource
Returns:
Throws:
IOException

Knowledge API Legacy5 Adapter 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.