• 大小: 506KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-10
  • 语言: 其他
  • 标签: com.ice.jni  registry  

资源简介

com.ice.jni.registry

资源截图

代码片段和文件信息

/*
** 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  2003-05-12 14:02  registry-3.1.3\
     目录           0  2003-05-12 14:02  registry-3.1.3\bin\
     目录           0  2003-05-12 14:02  registry-3.1.3\classes\
     目录           0  2003-05-12 14:02  registry-3.1.3\classes\com\
     目录           0  2003-05-12 14:02  registry-3.1.3\classes\com\ice\
     目录           0  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\
     目录           0  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\
     目录           0  2003-05-12 14:02  registry-3.1.3\doc\
     目录           0  2003-05-12 14:02  registry-3.1.3\doc\api\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\com\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\com\ice\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\com\ice\jni\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\com\ice\jni\registry\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\com\ice\jni\registry\doc\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\com\ice\jni\registry\meta-INF\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\windows\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\windows\Debug\
     目录           0  2003-05-12 14:02  registry-3.1.3\source\windows\Release\
     文件       65536  2003-05-12 14:02  registry-3.1.3\bin\ICE_JNIRegistry.dll
     文件       26435  2003-05-12 14:02  registry-3.1.3\bin\registry.jar
     文件        2749  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\HexNumberFormat.class
     文件         820  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\NoSuchKeyException.class
     文件         828  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\NoSuchValueException.class
     文件        1927  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\RegBinaryValue.class
     文件        2286  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\RegDWordValue.class
     文件       21825  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\Registry.class
     文件        1032  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\RegistryException.class
     文件        1409  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\RegistryKey$RegistryKeyEnumerator.class
     文件        1415  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\RegistryKey$RegistryValueEnumerator.class
     文件        4822  2003-05-12 14:02  registry-3.1.3\classes\com\ice\jni\registry\RegistryKey.class
............此处省略50个文件信息

评论

共有 条评论