Kanji - IBM

文章推薦指數: 80 %
投票人數:10人

Parse a Japanese name in Hiragana, Katakana, or Kanji into a surname and a given name. parse(String). transliteration, Convert a name component (surname or ... Skipnavigationlinks Overview Package Class Use Tree Deprecated Index Help PreviousClass|NextClass Frames|NoFrames AllHierarchies Summary:Nested|Field|Constructor|Method Detail:Field|Constructor|Method com.ibm.gnr.ja ClassKanji java.lang.Object com.ibm.gnr.ja.Kanji publicclassKanji extendsjava.lang.Object AnalyzesJapanesenames. Thisclassprovidesthefollowingmajorfunctions: Category Description Methods parsing ParseaJapanesenameinHiragana,Katakana,orKanjiintoasurnameandagivenname. parse(String) transliteration Convertanamecomponent(surnameorgivenname)inHiragana,Katakana,orKanjiinto Hiragana. transliterate(String)transliterateSurname(String) transliterateGivenName(String) Areferencedatafile(kanjiData.ibm)isloadedduringinitialization. SeeAlso: KanjiName, KanaReading ConstructorSummary ConstructorandDescription Kanji(java.lang.StringdataFile) ConstructsanewKanjiobjectbyreadingthespecifieddatafile. MethodSummary ModifierandType MethodandDescription java.util.List parse(java.lang.Stringname) ParsesapersonalnameinKanji,HiraganaorKatakanaintoitssurnameandgivenname. java.util.List transliterate(java.lang.Stringname) TransliteratesthespecifiedKanjinameintoHiragana java.util.List transliterateGivenName(java.lang.StringgivenName) TransliteratesthespecifiedgivennamestringintoastringinHiragana java.util.List transliterateSurname(java.lang.Stringsurname) TransliteratesthespecifiedsurnamestringintoastringinHiragana Methodsinheritedfromclassjava.lang.Object equals,getClass,hashCode,notify,notifyAll,toString,wait,wait,wait ConstructorDetail Kanji publicKanji(java.lang.StringdataFile) throwsDataException java.io.FileNotFoundException java.io.IOException ConstructsanewKanjiobjectbyreadingthespecifieddatafile. Parameters: dataFile-Pathtothedatafile. Throws: java.io.FileNotFoundException-whenthespecifieddataFileisnotfound java.io.IOException-whenI/Oerroroccurred DataException-whenthedataFileiscorrupted MethodDetail transliterate publicjava.util.Listtransliterate( java.lang.Stringname) throwsjava.lang.IllegalArgumentException TransliteratesthespecifiedKanjinameintoHiragana Parameters: name-Thestringtotransliterate. Returns: Atransliteratedstringinthetargetscript. Throws: java.lang.IllegalArgumentException-whenstringcontainscharactersthatdonot belongtoKanji,HiraganaorKatakana. transliterateSurname publicjava.util.ListtransliterateSurname( java.lang.Stringsurname) throwsjava.lang.IllegalArgumentException TransliteratesthespecifiedsurnamestringintoastringinHiragana Parameters: surname-Thesurnametotransliterate. Returns: AtransliteratedstringinHiragana. Throws: java.lang.IllegalArgumentException-whensurnamecontainscharactersthatdonot belongtoKanji,HiraganaorKatakana. transliterateGivenName publicjava.util.ListtransliterateGivenName( java.lang.StringgivenName) throwsjava.lang.IllegalArgumentException TransliteratesthespecifiedgivennamestringintoastringinHiragana Parameters: givenName-Thegivennametotransliterate. Returns: AtransliteratedstringinHiragana. Throws: java.lang.IllegalArgumentException-whengivenNamecontainscharactersthatdonot belongtoKanji,Hiragana,orKatakana. parse publicjava.util.Listparse( java.lang.Stringname) throwsjava.lang.IllegalArgumentException ParsesapersonalnameinKanji,HiraganaorKatakanaintoitssurnameandgivenname. Parameters: name-Thenametoparse. Returns: Alistofcandidatesofparsedname. Throws: java.lang.IllegalArgumentException-whenthespecifiednamecontainscharactersthatdonot belongtoKanji,HiraganaorKatakana. Skipnavigationlinks Overview Package Class Use Tree Deprecated Index Help PreviousClass|NextClass Frames|NoFrames AllHierarchies Summary:Nested|Field|Constructor|Method Detail:Field|Constructor|Method



請為這篇文章評分?