org.ocd.xmlparser
Class XMLParser
java.lang.Object
|
+--org.ocd.xmlparser.XMLParser
- All Implemented Interfaces:
- IXMLParser
- public class XMLParser
- extends java.lang.Object
- implements IXMLParser
- Since:
- $Date: 2002/08/14 07:29:48 $
- Version:
- $Revision: 1.3 $
- Author:
- $Author: drichan $, ocd_dino - ocd_dino@users.sourceforge.net (initial author)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getDocumentBuilder
public javax.xml.parsers.DocumentBuilder getDocumentBuilder()
- Specified by:
getDocumentBuilder
in interface IXMLParser
- Returns:
-
getDocumentBuilderFactory
public javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory()
- Specified by:
getDocumentBuilderFactory
in interface IXMLParser
- Returns:
-
getDefaultParser
public static IXMLParser getDefaultParser()
- Get the Default Parser Service
getTransformer
public org.ocd.xmlparser.Transformer getTransformer()
- Specified by:
getTransformer
in interface IXMLParser
- Returns:
-
getTransformerFactory
public org.ocd.xmlparser.TransformerFactory getTransformerFactory()
- Specified by:
getTransformerFactory
in interface IXMLParser
- Returns:
-
writeDocument
public void writeDocument(org.w3c.dom.Document pDoc,
java.io.OutputStream pStream)
throws java.io.IOException
- Write DOM Document to Output Stream
- Specified by:
writeDocument
in interface IXMLParser
- Parameters:
stream
- to write Output to.
readDocument
public org.w3c.dom.Document readDocument(java.io.InputStream pStream)
throws java.io.IOException,
org.xml.sax.SAXException
- Read an XML Document from an InputStream
- Specified by:
readDocument
in interface IXMLParser
- Parameters:
XML
- DOM Document