首页 | 本学科首页   官方微博 | 高级检索  
     

Java语言国际化的设计与实现
引用本文:冀振燕,程虎,梅嘉.Java语言国际化的设计与实现[J].软件学报,2000,11(11):1541-1546.
作者姓名:冀振燕  程虎  梅嘉
作者单位:中国科学院,软件研究所,北京,100080
基金项目:基金项目:国家“九五”重点科技攻关资助项目(96-737-01-03)
摘    要:指出本地化的缺点.深入分析了Java语 言的内部编码,设计并实现了支持国际化的编译器,采用字符编码转换的方案,使多语种字符 、字符串的操作达到了与英文字符、字符串完全一致的目标,并节省了类文件的存储空间,也 使程序具备了有条件的字符集无关性,在一定程度上解决了“万码奔腾”的问题.采用编译信 息和与语境无关的程序代码分离的方案解决了提示信息的国际化问题.提出了采用小字库方 案来解决含有本地字符的程序的真正跨平台问题.通过在加载类时采用对类名进行字符编码 转换的方案解决了JDK(Java development kit)所未能解决的含有本地字符的类名的支持问 题;针对JDK不同版本间的兼容性问题,提出采用根据字符编码特点来选用不同编码转换机制 的解决方案.测试结果证明,采用所设计的国际化方案可实现彻底的国际化支持.

关 键 词:Java语言  国际化
收稿时间:1999/5/30 0:00:00
修稿时间::

Design and Implementation of Java's Internationalization
JI Zhen-yan,CHENG Hu and MEI Jia.Design and Implementation of Java''s Internationalization[J].Journal of Software,2000,11(11):1541-1546.
Authors:JI Zhen-yan  CHENG Hu and MEI Jia
Abstract:The disadvantages of localization are pointed out in this paper, Java's intel encoding is also analyzed profoundly, and the c ompiler supporting internationalization is designed and implemented. With the ch aracter encoding transformation scheme, international characters and strings hav e the same operations as the English characters and strings, the storage spaces of class files are saved, and the applications have conditional encoding-indepe ndence and the problem of many Chinese character sets is solved to some extent. Separating compiler messages from codes independent of locale context supports t he implementation of international information. Small font libraries are adopted to implement the real platform-independence of applications including local ch aracters, the problem JKD (Java development kit) has not solved, and the charact ers' encoding transformation is performed during loading a class file. To solve the compatibility problem between different JDK versions, the different encoding transformation schemes are chosen according to the character's encoding charact eristic. The test results prove that the internationalization scheme designed in this paper can solve the internationalization problems thoroughly.
Keywords:Java programming language  internationa lization
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号