org.apache.rat.report.xml
Class XmlUtils

java.lang.Object
  extended by org.apache.rat.report.xml.XmlUtils

public final class XmlUtils
extends java.lang.Object


Constructor Summary
XmlUtils()
           
 
Method Summary
static boolean isWellFormedXml(org.xml.sax.InputSource isource)
           
static boolean isWellFormedXml(java.io.InputStream in)
           
static boolean isWellFormedXml(java.lang.String string)
           
static org.xml.sax.XMLReader newXMLReader()
           
static org.w3c.dom.Document toDom(java.io.InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlUtils

public XmlUtils()
Method Detail

isWellFormedXml

public static final boolean isWellFormedXml(java.lang.String string)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

newXMLReader

public static final org.xml.sax.XMLReader newXMLReader()
                                                throws org.xml.sax.SAXException,
                                                       javax.xml.parsers.ParserConfigurationException
Throws:
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

isWellFormedXml

public static final boolean isWellFormedXml(org.xml.sax.InputSource isource)

isWellFormedXml

public static final boolean isWellFormedXml(java.io.InputStream in)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

toDom

public static final org.w3c.dom.Document toDom(java.io.InputStream in)
                                        throws org.xml.sax.SAXException,
                                               java.io.IOException,
                                               javax.xml.parsers.ParserConfigurationException,
                                               javax.xml.parsers.FactoryConfigurationError
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.