All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.io.Resource Maven / Gradle / Ivy

There is a newer version: 5.1.1
Show newest version
package org.drools.io;

import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;

/**
 * 

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

*/ public interface Resource { /** * Open an InputStream to the resource, the user must close this when finished. * * @return * @throws IOException */ InputStream getInputStream() throws IOException; /** * Opens a Reader to the resource, the user most close this when finished. * @return * @throws IOException */ public Reader getReader() throws IOException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy