org.thdl.tib.scanner
Class MemorySyllableListTree
java.lang.Object
|
+--org.thdl.tib.scanner.LinkedList
|
+--org.thdl.tib.scanner.MemorySyllableListTree
- All Implemented Interfaces:
- SyllableListTree
- public class MemorySyllableListTree
- extends LinkedList
- implements SyllableListTree
Loads the whole dictionary into memory; not the preferred
implementation. Provides the fastest search, but takes up to
much resources. The preferred implementation is the
CachedSyllableListTree
.
The words must be stored in a binary file tree structure format.
This can be done using the BinaryFileGenerator
.
- Author:
- Andrés Montano Pellegrini
- See Also:
TibetanScanner
,
CachedSyllableListTree
,
BinaryFileGenerator
sil
protected String sil
def
protected String def
MemorySyllableListTree
public MemorySyllableListTree(String sil,
String def)
MemorySyllableListTree
public MemorySyllableListTree(String archivo)
throws Exception
toString
public String toString()
- Overrides:
toString
in class Object
getDictionarySource
public org.thdl.tib.scanner.DictionarySource getDictionarySource()
- Null because it does not support multiple dictionaries.
- Specified by:
getDictionarySource
in interface SyllableListTree
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
getDef
public String getDef()
- Specified by:
getDef
in interface SyllableListTree
getDefs
public org.thdl.tib.scanner.Definitions getDefs()
- Specified by:
getDefs
in interface SyllableListTree
hasDef
public boolean hasDef()
- Specified by:
hasDef
in interface SyllableListTree
lookUp
public org.thdl.tib.scanner.SyllableListTree lookUp(String silStr)
- Specified by:
lookUp
in interface SyllableListTree
main
public static void main(String[] args)
throws Exception
Exception
These API docs were created 02/02/2003 08:19 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by