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

Constructor Summary
DictionarySource()
           
 
Method Summary
 void add(int dict)
           
 boolean contains(int dict)
           
 int countDefs()
           
static org.thdl.tib.scanner.DictionarySource getAllDictionaries()
           
 int getDicts()
           
 boolean hasBrothers()
           
 org.thdl.tib.scanner.DictionarySource intersection(org.thdl.tib.scanner.DictionarySource dsO)
           
 boolean isEmpty()
           
 void print(boolean hasNext, DataOutput raf)
          Write to file using BinaryFileGenerator
static org.thdl.tib.scanner.DictionarySource read(DataInput raf)
           
 void reset()
           
 void setAllDictionaries()
           
 void setDicts(int dicts)
           
 int[] untangleDefs()
           
 int[] untangleDefs(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionarySource

public DictionarySource()
Method Detail

getAllDictionaries

public static org.thdl.tib.scanner.DictionarySource getAllDictionaries()

setAllDictionaries

public void setAllDictionaries()

setDicts

public void setDicts(int dicts)

getDicts

public int getDicts()

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:19 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by SourceForge_Logo