org.thdl.tib.scanner
Class DictionarySource
java.lang.Object
|
+--org.thdl.tib.scanner.DictionarySource
- public class DictionarySource
- extends Object
Specifies a subset of dictionaries among a set of
dictionaries. Supports a maximum of 15 dictionaries.
- Author:
- Andrés Montano Pellegrini
Field Summary |
private static int |
allDicts
|
private int |
dicts
|
private static int |
lastBit
Last bit of word; 1 if there are more brothers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dicts
private int dicts
lastBit
private static final int lastBit
- Last bit of word; 1 if there are more brothers.
- See Also:
- Constant Field Values
allDicts
private static final int allDicts
- See Also:
- Constant Field Values
DictionarySource
public DictionarySource()
getAllDictionaries
public static org.thdl.tib.scanner.DictionarySource getAllDictionaries()
setAllDictionaries
public void setAllDictionaries()
setDicts
public void setDicts(int dicts)
getDicts
public int getDicts()
getBits
private int getBits(int n)
contains
public boolean contains(int dict)
add
public void add(int dict)
print
public void print(boolean hasNext,
DataOutput raf)
throws IOException
- Write to file using BinaryFileGenerator
IOException
read
public static org.thdl.tib.scanner.DictionarySource read(DataInput raf)
throws IOException
IOException
hasBrothers
public boolean hasBrothers()
countDefs
public int countDefs()
intersection
public org.thdl.tib.scanner.DictionarySource intersection(org.thdl.tib.scanner.DictionarySource dsO)
untangleDefs
public int[] untangleDefs(int n)
untangleDefs
public int[] untangleDefs()
isEmpty
public boolean isEmpty()
reset
public void reset()
These API docs were created 02/02/2003 08:20 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by