摘要
由于Java无法得到底层的一些参数,实现对系统底层磁盘的操作变的困难,所以引入了JNI(Java Native Interface Java本地接口)技术。分析了JAVA与VC++之间的通信方法,介绍了Windows平台下java对DLL(Dynamic LinkLibrary动态链接库)具体调用过程。在VC++环境下,将硬件设备看做文件,通过文件读写的方式来对其数据存取进行访问,可以实现对磁盘扇区的读写。结合Java对dll文件的调用方式,实现了应用层对扇区的直接读写。
Since java can not get some of the the underlying parameters, operating underlying disk becomes difficult, then JNI (Java Native Interface Java Native Interface) technology is introduced. At first, communication method between JAVA and VC + _u is analyzed based on JNI technology, then java calling DLL (Dynamic Link Library) process on the Windows platform is de scribed. In the VC++ environment, the hardware is seen as the file, reading and writing hard disk sector becomes available by the way of accessing data through reading and writing file. At last, combining the way Java calling dll files, application layer can read and write sector directly.
出处
《计算机工程与设计》
CSCD
北大核心
2013年第4期1457-1461,共5页
Computer Engineering and Design
基金
国家自然科学基金项目(60372058)
国家自然科学基金项目(60772101)