net.sourceforge.groboutils.util.io.v1
Interface IInputStreamGenerator

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

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).

Since:
0.9.1d Alpha (sometime in 2001)
Version:
$Date: 2003/05/19 20:31:47 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Method Summary
 java.io.InputStream createInputStream(java.lang.String relativeName)
           
 java.lang.String getFullName(java.lang.String relativeName)
           
 

Method Detail

getFullName

public java.lang.String getFullName(java.lang.String relativeName)

createInputStream

public java.io.InputStream createInputStream(java.lang.String relativeName)
                                      throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2001-2003 by The GroboUtils Project