org.drools.io
Interface Resource

All Superinterfaces:
Serializable

public interface Resource
extends Serializable

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.
 

Method Detail

getInputStream

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

Returns:
Throws:
IOException

getReader

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

Returns:
Throws:
IOException


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