java.lang.Object
com.mayhoo.kanji.KanjiDicReader
- public class KanjiDicReader
- extends java.lang.Object
KanjiDicReader enables the reading of the Kanjidic file format
created by Jim Breen. The class reads the file and produces
a data structure related to the XML file format by Duane May,
which was origianlly based on the kanjidic format.
The class consists of one function load and the classes constructor.
A file is imported as follows:
KanjiDicReader reader = new KanjiDicReader( filename );
KanjiDic theDictionary = reader.load();
- Version:
- $Id: KanjiDicReader.java,v 1.2 2002/04/20 18:10:24 djmay Exp $
|
Method Summary |
com.mayhoo.kanji.xml.Kanjidic |
load()
Loads the file specified in the constructor and returns the
KanjiDic struture containing the information in the file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
private static final java.lang.String VERSION
- Version information
- See Also:
- Constant Field Values
m_fileName
private java.lang.String m_fileName
controlHigh
private int controlHigh
csZeroLow
private int csZeroLow
csZeroHigh
private int csZeroHigh
csOneLow
private int csOneLow
csOneHigh
private int csOneHigh
csTwo
private int csTwo
csThree
private int csThree
KanjiDicReader
public KanjiDicReader(java.lang.String fileName)
- The constructor. Creates a KanjiDic reader reading from the
file, fileName.
load
public com.mayhoo.kanji.xml.Kanjidic load()
- Loads the file specified in the constructor and returns the
KanjiDic struture containing the information in the file.