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
defSourcesWanted
public static org.thdl.tib.scanner.DictionarySource defSourcesWanted
wordRaf
public static RandomAccessFile wordRaf
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)
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