lexx.trie
Class CharMapDisk

java.lang.Object
  |
  +--lexx.trie.CharMapDisk
All Implemented Interfaces:
CharMapBase, java.lang.Cloneable, java.io.Serializable

public final class CharMapDisk
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, CharMapBase

Hard drive Character Map simular to java.util.HashMap

but instead of Strings it just uses characters

All data is stored in on hard drive as directories and files, as a result uses no memory up, however this section is still under construction

Copyright (c) 2002-2003

Since:
18/02/2003
Version:
0.8
Author:
Mohammed Imran
See Also:
Serialized Form

Constructor Summary
CharMapDisk(java.io.File f)
           
CharMapDisk(java.lang.String dir)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Object get(char character)
           
 java.io.File getCurrentDir()
           
 java.util.Iterator iterator()
           
 void put(char character, java.lang.Object obj)
           
 int size()
           
 java.lang.Object[] toArray()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharMapDisk

public CharMapDisk(java.io.File f)

CharMapDisk

public CharMapDisk(java.lang.String dir)
Method Detail

clone

public final java.lang.Object clone()
Specified by:
clone in interface CharMapBase
Overrides:
clone in class java.lang.Object

size

public final int size()
Specified by:
size in interface CharMapBase

toArray

public final java.lang.Object[] toArray()
Specified by:
toArray in interface CharMapBase

put

public final void put(char character,
                      java.lang.Object obj)
Specified by:
put in interface CharMapBase

get

public final java.lang.Object get(char character)
Specified by:
get in interface CharMapBase

getCurrentDir

public final java.io.File getCurrentDir()

iterator

public final java.util.Iterator iterator()
Specified by:
iterator in interface CharMapBase