org.carrot2.util.resource
Interface IResource

All Known Implementing Classes:
ClassLoaderResource, ClassResource, FileResource, URLResource, URLResourceWithParams

public interface IResource

Resource abstraction. Override Object.toString() to have meaningful logging information at runtime.


Method Summary
 InputStream open()
          Open an input stream to the resource.
 

Method Detail

open

InputStream open()
                 throws IOException
Open an input stream to the resource. Specific implementations may cache and close the underlying stream, but such behavior is not required by this interface. Please refer to the documentation of specific implementations for details.

Throws:
IOException


Copyright (c) Dawid Weiss, Stanislaw Osinski