Web Site

org.codehaus.janino.util.resource
Interface ResourceFinder.Resource

All Known Implementing Classes:
ResourceFinder.FileResource
Enclosing interface:
ResourceFinder

public static interface ResourceFinder.Resource

Representation of a resource than was found by a ResourceFinder.


Method Summary
 String getFileName()
          Returns a decorative "file name" that can be used for reporting errors and the like.
 InputStream open()
          Opens the resource.
 

Method Detail

open

public InputStream open()
                 throws IOException
Opens the resource. The caller is responsible for closing the InputStream.

Throws:
IOException

getFileName

public String getFileName()
Returns a decorative "file name" that can be used for reporting errors and the like. It does not necessarily map to a file in the local file system!


Web Site