- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
AReasonableCWrapperedJavaNative(一个合理的c封装Java本机)
A Reasonable C++ Wrappered Java Native Interface
Craig Bordelon
Telcordia Technologies, Piscataway, NJ 08854 USA
E-mail: cbordelon@
SUMMARY
A reasonable C++ Java Native Interface (JNI) technique termed C++ Wrappered JNI (C++WJ) is presented.
The technique simplifies current error-prone JNI development by wrappering JNI calls. Provided
development is done with the aid of a C++ compiler, C++WJ offers type checking and behind the scenes
caching. A tool (jH) patterned on javah automates the creation of C++WJ classes.
The paper presents the rationale behind the choices that led to C++WJ. Handling of Java class and interface
hierarchy including Java type downcasts is discussed. Efficiency considerations in the C++WJ lead to two
flavors of C++ classes: jtypes and Jtypes. A jtype is a lightweight less than full wrapper of a JNI object
reference. A Jtype is a heavyweight full wrapper of a JNI object reference.
KEY WORDS: Java; JNI; C++; native caching; wrapper classes, templates
Introduction
Java has emerged as an implementation language of choice for a variety of software applications. Still, at
times there is a need to leverage pre-existing C/C++ software or to use low level system specific C/C++
software with Java software. Java and JDK 1.1/1.2 provide the Java nativemodifier and the Java Native
Interface6 (JNI) to allow C/C++ use with Java. The JNI, while powerful, lacks some things to make native
C/C++ easy to write.
This paper rationalizes a technique to create C++ classes as needed to allow for simpler and at the same
time efficient native C++ software. The created C++ classes encapsulate JNI calls in an inlinemanner
and can sacrifice almost no performance. The
您可能关注的文档
- A Comparative Analysis of Assignment Problem(分配问题的比较分析).pdf
- A Comparative Analysis of Strategies and (比较分析的策略和).pdf
- A Comparison Between Direct and Indirect (比较直接和间接).pdf
- A Comparative Assessment of Three Common (三种常见的比较评估).pdf
- A comparative study of water as a refrigerant (水作为制冷剂的比较研究).pdf
- A Comparison of Biomechanical Parameters (生物力学参数的比较).pdf
- A Comparative Study of Inverse Dynamics based (基于逆动力学的比较研究).pdf
- A Comparator With Reduced Delay Time in 65 (在65年与减少延迟时间比较器).pdf
- A Comparison of Two Theories of Learning (比较两个理论的学习,).pdf
- A COMPARATIVE STUDY ON ENVIRONMENTAL (环境的比较研究).pdf
- A Review of Automotive Brake Squeal Mechanisms(汽车制动尖叫的审查机制).pdf
- A Review of Corrosion and Hydrogen Diffusion …(回顾腐蚀和氢扩散u2026).pdf
- A review of DNA sequencing techniques Nc (数控的DNA测序技术).pdf
- A Review of Methods Used to Determine the (回顾方法用于确定).pdf
- A review of Pipeline Defect Assessment Manual (对管道缺陷评估手册).pdf
- A review of immunologic diseases of the dog (回顾免疫疾病的狗 ).pdf
- A Review of Six Sigma Implementation (六西格玛实施的审查).pdf
- A Review of the Dynamics of Cavitating Pumps(回顾空泡动力学的泵).pdf
- A review on dynamics of mass variable systems (回顾质量变量的动力学系统).pdf
- A Review of Regenerative Braking Systems(再生制动系统的回顾).pdf
文档评论(0)