net.groboclown.util.io.v1
Interface IInputStreamGenerator

All Known Implementing Classes:
HashtableInputStreamGenerator, URLInputStreamGenerator, ResourceInputStreamGenerator, FileInputStreamGenerator

public interface IInputStreamGenerator

A type of class which can generate a new InputStream based on just a partial name. Useful if a resource is loaded from a specific location (classpath resource, file system, URL, etc), and it references other resources which must be loaded relative to it.

The generators should be first created using the original full resource name. Then, each stream generated is relative to that first resource location. If the first resource location is requested, then it should be considered absolute (not relative to itself).


Method Summary
 InputStream createInputStream(String relativeName)
           
 String getFullName(String relativeName)
           
 

Method Detail

getFullName

public String getFullName(String relativeName)

createInputStream

public InputStream createInputStream(String relativeName)
                              throws IOException


Written under the LGPL