|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.kawao.kakasi.KanwaDictionary
This class represents the Kanwa dictionary.
Kakasi.getKanwaDictionary()
Constructor Summary | |
KanwaDictionary()
|
Method Summary | |
void |
addItem(java.lang.String kanji,
java.lang.String yomi,
char okurigana)
Adds dictionary entry. |
void |
close()
Closes the dictionary file. |
void |
finalize()
Called when there are no more references to this object. |
void |
load(java.io.Reader reader)
Reads and adds dictionary entries from the reader. |
void |
load(java.lang.String filename)
Reads and adds dictionary entries from the file. |
void |
load(java.lang.String filename,
java.lang.String encoding)
Reads and adds dictionary entries from the file with the specified encoding. |
static void |
main(java.lang.String[] args)
Main program of 'mkkanwa_j'. |
void |
save(java.io.RandomAccessFile file)
Saves this Kanwa dictionary to the specified file. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KanwaDictionary()
Method Detail |
public void load(java.lang.String filename) throws java.io.IOException
filename
- the file name.java.io.IOException
- if an error occurred when opening or reading
the file.public void load(java.lang.String filename, java.lang.String encoding) throws java.io.IOException
filename
- the file name.encoding
- the file encoding.java.io.IOException
- if an error occurred when opening or reading
the file.public void load(java.io.Reader reader) throws java.io.IOException
reader
- the reader object.java.io.IOException
- if an error occurred when reading from
the reader.public void addItem(java.lang.String kanji, java.lang.String yomi, char okurigana)
kanji
- the kanji string.yomi
- the yomi string.okurigana
- the okurigana character.public void close() throws java.io.IOException
java.io.IOException
- if an error occurred when closing kanwa
dictionary file.public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- the Exception raised by this methodpublic void save(java.io.RandomAccessFile file) throws java.io.IOException
file
- the destination file.java.io.IOException
- if an error occurred when writing to the file.public static void main(java.lang.String[] args) throws java.io.IOException
args
- command line arguments.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |