资源简介
解决动态链接库ICE_JNIRegistry.dll位置放置问题,该jar包中已经包含ICE_JNIRegistry.dll。该压缩包中有regist.jar和registry源码,regist.jar是将registry-3.1.3的源码修改后重新编译的,不需要ICE_JNIRegistry.dll,直接调用regist.jar即可
代码片段和文件信息
/*
** Java native interface to the Windows Registry API.
**
** Authored by Timothy Gerard Endres
**
**
** This work has been placed into the public domain.
** You may use this work in any way and for any purpose you wish.
**
** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND
** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR
** OF THIS SOFTWARE ASSUMES _NO_ RESPONSIBILITY FOR ANY
** CONSEQUENCE RESULTING FROM THE USE MODIFICATION OR
** REDISTRIBUTION OF THIS SOFTWARE.
**
*/
package com.ice.jni.registry;
import java.lang.*;
import java.text.*;
import java.util.*;
/**
* The HexNumberFormat class implements the code necessary
* to format and parse Hexidecimal integer numbers.
*
* @version 3.1.3
*
* @author Timothy Gerard Endres time@ice.com.
* @see java.text.NumberFormat
*/
public
class HexNumberFormat
extends Format
{
static public final String RCS_ID = “$Id: HexNumberFormat.javav 1.1 2000/05/20 17:10:15 time Exp $“;
static public final String RCS_REV = “$Revision: 1.1 $“;
private static char[] lowChars;
private static char[] uprChars;
private int count;
private String pattern;
private static char[] hexChars;
static
{
HexNumberFormat.lowChars = new char[20];
HexNumberFormat.uprChars = new char[20];
HexNumberFormat.uprChars[0] = HexNumberFormat.lowChars[0] = ‘0‘;
HexNumberFormat.uprChars[1] = HexNumberFormat.lowChars[1] = ‘1‘;
HexNumberFormat.uprChars[2] = HexNumberFormat.lowChars[2] = ‘2‘;
HexNumberFormat.uprChars[3] = HexNumberFormat.lowChars[3] = ‘3‘;
HexNumberFormat.uprChars[4] = HexNumberFormat.lowChars[4] = ‘4‘;
HexNumberFormat.uprChars[5] = HexNumberFormat.lowChars[5] = ‘5‘;
HexNumberFormat.uprChars[6] = HexNumberFormat.lowChars[6] = ‘6‘;
HexNumberFormat.uprChars[7] = HexNumberFormat.lowChars[7] = ‘7‘;
HexNumberFormat.uprChars[8] = HexNumberFormat.lowChars[8] = ‘8‘;
HexNumberFormat.uprChars[9] = HexNumberFormat.lowChars[9] = ‘9‘;
HexNumberFormat.uprChars[10] = ‘A‘; HexNumberFormat.lowChars[10] = ‘a‘;
HexNumberFormat.uprChars[11] = ‘B‘; HexNumberFormat.lowChars[11] = ‘b‘;
HexNumberFormat.uprChars[12] = ‘C‘; HexNumberFormat.lowChars[12] = ‘c‘;
HexNumberFormat.uprChars[13] = ‘D‘; HexNumberFormat.lowChars[13] = ‘d‘;
HexNumberFormat.uprChars[14] = ‘E‘; HexNumberFormat.lowChars[14] = ‘e‘;
HexNumberFormat.uprChars[15] = ‘F‘; HexNumberFormat.lowChars[15] = ‘f‘;
}
static public final HexNumberFormat
getInstance()
{
return new HexNumberFormat( “XXXXXXXX“ );
}
public
HexNumberFormat( String pattern )
{
super();
this.pattern = pattern;
this.count = pattern.length();
this.hexChars =
( pattern.charAt(0) == ‘X‘
? HexNumberFormat.uprChars
: HexNumberFormat.lowChars );
}
public String
format( int hexNum )
throws Ille
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-05-09 21:21 registry-3.1.3\
目录 0 2014-05-09 21:21 registry-3.1.3\com\
目录 0 2014-05-09 21:21 registry-3.1.3\com\ice\
目录 0 2014-05-09 21:21 registry-3.1.3\com\ice\jni\
目录 0 2014-05-09 21:21 registry-3.1.3\com\ice\jni\registry\
文件 4760 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\build.xm
目录 0 2014-05-09 21:21 registry-3.1.3\com\ice\jni\registry\doc\
文件 515 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\doc\LICENSE
文件 694 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\doc\License.html
文件 1442 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\doc\README.html
文件 3989 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\HexNumberFormat.java
目录 0 2014-05-09 21:21 registry-3.1.3\com\ice\jni\registry\me
文件 443 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\me
文件 1376 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\NoSuchKeyException.java
文件 1420 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\NoSuchValueException.java
文件 2090 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\RegBinaryValue.java
文件 2530 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\RegDWordValue.java
文件 34183 2014-05-07 18:30 registry-3.1.3\com\ice\jni\registry\Registry.java
文件 1591 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\RegistryException.java
文件 17520 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\RegistryKey.java
文件 3897 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\RegistryValue.java
文件 3377 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\RegMultiStringValue.java
文件 2124 2003-05-12 14:02 registry-3.1.3\com\ice\jni\registry\RegStringValue.java
文件 62250 2014-05-07 17:20 registry-3.1.3\regist.jar
评论
共有 条评论