treebolic.provider.xml.dom
Class Parser

java.lang.Object
  extended by treebolic.provider.xml.dom.Parser

public class Parser
extends java.lang.Object

DOM Parser

Author:
Bernard Bou

Field Summary
protected  boolean validate
          Validate XML
 
Constructor Summary
Parser()
          Constructor
Parser(boolean thisValidateFlag)
          Constructor
 
Method Summary
 org.w3c.dom.Document makeDocument(java.net.URL thisUrl, org.xml.sax.EntityResolver thisResolver)
          Make document
 org.w3c.dom.Document makeDocument(java.net.URL thisIn, java.net.URL thisXslt, org.xml.sax.EntityResolver thisResolver)
          Document
private  javax.xml.parsers.DocumentBuilder makeDocumentBuilder()
          Make Document builder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validate

protected boolean validate
Validate XML

Constructor Detail

Parser

public Parser()
Constructor


Parser

public Parser(boolean thisValidateFlag)
Constructor

Method Detail

makeDocument

public org.w3c.dom.Document makeDocument(java.net.URL thisUrl,
                                         org.xml.sax.EntityResolver thisResolver)
Make document

Parameters:
thisUrl - in data url
thisResolver - entity resolver
Returns:
DOM document

makeDocumentBuilder

private javax.xml.parsers.DocumentBuilder makeDocumentBuilder()
                                                       throws javax.xml.parsers.ParserConfigurationException
Make Document builder

Returns:
document builder
Throws:
javax.xml.parsers.ParserConfigurationException

makeDocument

public org.w3c.dom.Document makeDocument(java.net.URL thisIn,
                                         java.net.URL thisXslt,
                                         org.xml.sax.EntityResolver thisResolver)
Document

Parameters:
thisIn - in data url
thisXslt - xslt url
thisResolver - entity resolver, null if none
Returns:
DOM document
Throws:
javax.xml.transform.TransformerException
java.io.IOException