org.thdl.tib.scanner
Class FileSyllableListTree

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

public class FileSyllableListTree
extends Object
implements SyllableListTree

Searches the words directly in a file; not the preferred implementation. The search is too slow! 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

Field Summary
static org.thdl.tib.scanner.DictionarySource defSourcesWanted
           
static RandomAccessFile wordRaf
           
 
Constructor Summary
FileSyllableListTree(String archivo, int defSourcesWanted)
          Creates the root
FileSyllableListTree(String sil, long[] def, org.thdl.tib.scanner.DictionarySource defSource, long posLista)
          Used to create each node (except the root)
 
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)
           
static void openFiles(String archivo)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defSourcesWanted

public static org.thdl.tib.scanner.DictionarySource defSourcesWanted

wordRaf

public static RandomAccessFile wordRaf
Constructor Detail

FileSyllableListTree

public FileSyllableListTree(String archivo,
                            int defSourcesWanted)
                     throws Exception
Creates the root


FileSyllableListTree

public FileSyllableListTree(String sil,
                            long[] def,
                            org.thdl.tib.scanner.DictionarySource defSource,
                            long posLista)
Used to create each node (except the root)

Method Detail

toString

public String toString()
Overrides:
toString in class Object

getDictionarySource

public org.thdl.tib.scanner.DictionarySource getDictionarySource()
Specified by:
getDictionarySource in interface SyllableListTree

openFiles

public static void openFiles(String archivo)
                      throws Exception
Exception

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


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