net.groboclown.util.io.v1
Class HashtableInputStreamGenerator
java.lang.Object
|
+--net.groboclown.util.io.v1.HashtableInputStreamGenerator
- All Implemented Interfaces:
- IInputStreamGenerator
- public class HashtableInputStreamGenerator
- extends Object
- implements IInputStreamGenerator
A type of class which can generate a new InputStream based on a entry
in a Hashtable. It will create a StringBufferInputStream based on the
toString of the data.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
map
private Hashtable map
orig
private String orig
HashtableInputStreamGenerator
public HashtableInputStreamGenerator(Hashtable map)
- Accepts the name of the 1st file loaded. All files generated from
this generator will be relative to its location.
getFullName
public String getFullName(String relativeName)
- Specified by:
getFullName
in interface IInputStreamGenerator
createInputStream
public InputStream createInputStream(String relativeName)
throws IOException
- Specified by:
createInputStream
in interface IInputStreamGenerator
Written under the LGPL