Package dict.prepare

Package building the command line utility for desktop computers for preparing dictionary files in order to use them on JavaME driven devices.

See:
          Description

Interface Summary
IDictParserHandler Used for receiving index entries from the dictionary parser.
 

Class Summary
DictImport Builds files and a directory structure suitable for using a dictionary in a midlet.
DictParser Dict.cc dictionary file parser.
ParserBase Base class for classes implementing parsing of diverse dictionary files.
Prepare Main class for the index preparation program.
ThesParser Thesaurus file parser.
UDDLParser UDDL dictionary file parser.
 

Package dict.prepare Description

Package building the command line utility for desktop computers for preparing dictionary files in order to use them on JavaME driven devices.

Due to many JavaME restrictions especially that regarding access rights to file systems for JavaME midlets, the whole dictionary: the application and the data files are collected in one single jar file. The necessary data files, ie. the dictionary, index and configuration files are resources of the midlet package. This allows the midlet to access the necessary files without running in trusted environments (signing = many $). Such dictionary, index, configuration files and the directory structure for the midlets jar file must be prepared on a desktop PC using a special program dict.prepare.Prepare implented in this package. The program is usually automatically called in the ant build script build.xml in the target dicts-me but you may also call it from the command line using:

java -jar ${mdlname}prep.jar dict.txt TYPE directory
where: The ant build script uses the utility in order to prepare a directory structure in the directory preverified, the it compiles the classes from the packages dict.me and dict.common into the same directory and builds a jar file for JavaME from the prepared files and classes in this directory.

See the description of the class dict.prepare.Prepare for more details on the command line program. See dict.prepare.DictImport for more details about the format of the files and the directory structure created for the JavaME dictionary.