com.croftsoft.core.util.filemap
Class FileMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by com.croftsoft.core.util.filemap.FileMap
All Implemented Interfaces:
Map

public class FileMap
extends AbstractMap

A Map that stores the values in files within a directory. Uses filenames as the keys and InputStreams as the values.

Version:
1999-04-03
See Also:
FilenameKeyGenerator, AbstractMap
Author:
David Wallace Croft

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
FileMap(File rootDirectory)
           
 
Method Summary
 Set entrySet()
           
static void main(String[] args)
           
 Object put(Object key, Object value)
           
 Object remove(Object key)
           
static boolean test()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileMap

public FileMap(File rootDirectory)
Method Detail

main

public static void main(String[] args)

test

public static boolean test()

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class AbstractMap

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class AbstractMap

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)