org.thdl.tib.scanner
Class CachedSyllableListTree

java.lang.Object
  |
  +--org.thdl.tib.scanner.CachedSyllableListTree
All Implemented Interfaces:
SyllableListTree

public class CachedSyllableListTree
extends Object
implements SyllableListTree

Provides recommended implementation of the SyllableListTree (currently most efficient memory-speed combination) loading from file into memory only the "trunk" of the tree, and resorting to the disk when searching the rest of the tree.

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, BinaryFileGenerator

Constructor Summary
CachedSyllableListTree(String archivo)
           
 
Method Summary
 String getDef()
           
 org.thdl.tib.scanner.Definitions getDefs()
           
 org.thdl.tib.scanner.DictionarySource getDictionarySource()
           
 boolean hasDef()
           
 org.thdl.tib.scanner.SyllableListTree lookUp(String silStr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedSyllableListTree

public CachedSyllableListTree(String archivo)
                       throws Exception
Method Detail

getDef

public String getDef()
Specified by:
getDef in interface SyllableListTree

getDefs

public org.thdl.tib.scanner.Definitions getDefs()
Specified by:
getDefs in interface SyllableListTree

getDictionarySource

public org.thdl.tib.scanner.DictionarySource getDictionarySource()
Specified by:
getDictionarySource 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


These API docs were created 02/02/2003 08:19 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by SourceForge_Logo