Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
XMLUtil.java
Package: meybomailweb.rar [view]
Upload User: gtz2001
Upload Date: 2016-12-29
Package Size: 2489k
Code Size: 1k
Category:
WEB Mail
Development Platform:
Java
- package net.meybo.util;
- import java.io.*;
- import org.dom4j.*;
- /**
- * 处理 XML 的工具类,它只被 XMLTool 类使用
- * <p>Title: </p>
- * <p>Description: </p>
- * <p>Copyright: Copyright (c) 2005</p>
- * <p>Company:脉博软件 </p>
- * @author:阚吉彬
- * @version 1.0
- */
- class XMLUtil{
- XMLUtil(){
- }
- protected static void toXmlFile(Document xmlJDoc, String encoding, String fileName) throws FileNotFoundException, IOException {
- FileWriter file=new FileWriter(fileName);
- xmlJDoc.write(file);
- file.close();
- }
- protected static InputStream getInputStream(String xmlStr) throws Exception {
- return new ByteArrayInputStream(xmlStr.getBytes());
- }
- protected static Document buildDocument(Element el) {
- Document doc = null;
- doc=DocumentHelper.createDocument(el);
- return doc;
- }
- }