易截截图软件、单文件、免安装、纯绿色、仅160KB

Java读取注册表信息到内存中

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @description 本程序实现了读取注册表分支:HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\ODBC Data Sources到内存的操作
* @author:narsh
* @time 2010-2-8
*/
public class getRegToMemery {
public static void main(String []args){
try {
Process ps = null;
ps = Runtime
.getRuntime()
.exec(
"reg query \"HKEY_CURRENT_USER\\Software\\ODBC\\ODBC.INI\\ODBC Data Sources\"");
ps.getOutputStream().close();
InputStreamReader i = new InputStreamReader(ps.getInputStream());
String line;
BufferedReader ir = new BufferedReader(i);
while ((line = ir.readLine()) != null) {
System.out.println(line);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}


相关文档:

如何在UltraEdit中使java文件语法高亮显示?

如何在UltraEdit中使java文件语法高亮显示?
 
1.  UltraEdit官方网站下载所需文件格式的语法方, http://www.ultraedit.com/downloads/extras.html,选择java下载。
2.  选择“高级”->“配置”
3.  选择“编辑器显示”->“语法加亮”,点击“ ......

java数据结构之树集TreeSet与书映射(TreeMap)

1.树集TreeSet
     TreeSet类在java.util包中
     树集中的结点是按着其存放的数据的字典序一层一层地依次排列  在同一层中的结点从左到右按字典序递增排列
     A.构造方法:TreeSet()
     B.常用方法
   & ......

java中使用dom4j写xml文件和简单教程

 
下载 dom4j-1.6.1.jar。
1: package org.zzp.common.xml.dom4j;
2:
3: import java.io.FileWriter;
4: import java.io.IOException;
5: import org.dom4j.Document;
6: import org.dom4j.DocumentHelper;
7: import org.dom4j.Element;
8: import org.dom4j.io.OutputFormat;
9: impor ......

JSON Java与AJAX(Jquery)

一、JSON 是什么?
JSON 的全称是JavaScript Object Notation,是一种轻量级的数据交换格式。
JSON 与XML 具有相同的特性,例如易于人编写和阅读,易于机器生成和解析。但是JSON 比
XML 数据传输的有效性要高出很多。JSON 完全独立与编程语言,使用文本格式保存。
JSON 数据有两种结构:
• Name-Value 对构成的集 ......

如何 使用 java 操纵 XML 文件


Introduction to XML and XML With Java  
 
If you are looking for sample programs to parse a XML file using DOM/SAX parser or looking for a program to generate a XML file please proceed directly to programs.
This small tutorial introduces you to the basic concepts of XML and using Xer ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号