Java语言国际化的设计与实现
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

基金项目:国家“九五”重点科技攻关资助项目(96-737-01-03)


Design and Implementation of Java's Internationalization
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    指出本地化的缺点.深入分析了Java语 言的内部编码,设计并实现了支持国际化的编译器,采用字符编码转换的方案,使多语种字符 、字符串的操作达到了与英文字符、字符串完全一致的目标,并节省了类文件的存储空间,也 使程序具备了有条件的字符集无关性,在一定程度上解决了“万码奔腾”的问题.采用编译信 息和与语境无关的程序代码分离的方案解决了提示信息的国际化问题.提出了采用小字库方 案来解决含有本地字符的程序的真正跨平台问题.通过在加载类时采用对类名进行字符编码 转换的方案解决了JDK(Java development kit)所未能解决的含有本地字符的类名的支持问 题;针对JDK不同版本间的兼容性问题,提出采用根据字符编码特点来选用不同编码转换机制 的解决方案.测试结果证明,采用所设计的国际化方案可实现彻底的国际化支持.

    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.

    参考文献
    相似文献
    引证文献
引用本文

冀振燕,程虎,梅嘉. Java语言国际化的设计与实现.软件学报,2000,11(11):1541-1546

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:1999-05-30
  • 最后修改日期:1999-09-10
  • 录用日期:
  • 在线发布日期:
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号