Java调用DLL实现读写磁盘扇区  被引量:2

Reading and writing disk sector based on Java calling DLL

在线阅读下载全文

作  者:张美玲[1] 张刚[1] 

机构地区:[1]太原理工大学信息工程学院,山西太原030024

出  处:《计算机工程与设计》2013年第4期1457-1461,共5页Computer Engineering and Design

基  金:国家自然科学基金项目(60372058);国家自然科学基金项目(60772101)

摘  要:由于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.

关 键 词:Java JAVA本地接口 VC++ 动态库文件 读扇区 写扇区 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象