com.liferay.portal.kernel.xml
Class UnsecureSAXReaderUtil
java.lang.Object
com.liferay.portal.kernel.xml.UnsecureSAXReaderUtil
public class UnsecureSAXReaderUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnsecureSAXReaderUtil
public UnsecureSAXReaderUtil()
getSAXReader
public static SAXReader getSAXReader()
read
public static Document read(File file)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(File file,
boolean validate)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(InputStream is)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(InputStream is,
boolean validate)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(Reader reader)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(Reader reader,
boolean validate)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(String xml)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(String xml,
boolean validate)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(String xml,
XMLSchema xmlSchema)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(URL url)
throws DocumentException
- Throws:
DocumentException
read
public static Document read(URL url,
boolean validate)
throws DocumentException
- Throws:
DocumentException
readURL
public static Document readURL(String url)
throws DocumentException,
MalformedURLException
- Throws:
DocumentException
MalformedURLException
readURL
public static Document readURL(String url,
boolean validate)
throws DocumentException,
MalformedURLException
- Throws:
DocumentException
MalformedURLException
setSAXReader
public void setSAXReader(SAXReader saxReader)