Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members | Related Pages

org.colimas.services.xml.XMLReader Class Reference

List of all members.

Static Public Member Functions

static void main (java.lang.String[] args)
static Document readXML (InputStream xmlInput, boolean validate) throws java.io.IOException, org.xml.sax.SAXException, ParserConfigurationException
static Document readXML (Reader xmlReader, boolean validate) throws java.io.IOException, org.xml.sax.SAXException, ParserConfigurationException
static Document readXMLFile (File xmlFile, boolean validate, String encoding) throws java.io.IOException, org.xml.sax.SAXException, ParserConfigurationException

Detailed Description

XMLReader.java

Function:
Read xml file and parse it.

Author:
zhao lei
Version:
1.0
Modification History:
 SEQ DATE       ORDER DEVELOPER      DESCRIPTION
 --- ---------- ----- -------------- -----------------------------
 001 2005/12/23          zhao lei       INIT
 001 2005/12/31          zhao lei       delete I_Service interface 
 


Member Function Documentation

static void org.colimas.services.xml.XMLReader.main java.lang.String[]  args  )  [static]
 

Tests the XML reader

Parameters:
args an array of command-line arguments

static Document org.colimas.services.xml.XMLReader.readXML Reader  xmlReader,
boolean  validate
throws java.io.IOException, org.xml.sax.SAXException, ParserConfigurationException [static]
 

Reads an XML stream

Returns:
The DOM
Parameters:
xmlReader The reader
validate Must the document be validated ?

static Document org.colimas.services.xml.XMLReader.readXML InputStream  xmlInput,
boolean  validate
throws java.io.IOException, org.xml.sax.SAXException, ParserConfigurationException [static]
 

Reads an XML stream

Returns:
The DOM
Parameters:
xmlInput The XML input stream
validate Is the validation used ?

static Document org.colimas.services.xml.XMLReader.readXMLFile File  xmlFile,
boolean  validate,
String  encoding
throws java.io.IOException, org.xml.sax.SAXException, ParserConfigurationException [static]
 

Read an XML file.

Returns:
The read DOM
Parameters:
xmlFile The XML file
validate Must the document be validated ?
encoding The encoding of the file


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 02:04:38 2006 for Colimas by  doxygen 1.4.4