com.liferay.portal.util
Class DocumentUtil
java.lang.Object
com.liferay.portal.util.DocumentUtil
public class DocumentUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentUtil
public DocumentUtil()
readDocumentFromFile
public static org.dom4j.Document readDocumentFromFile(java.io.File file)
throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
readDocumentFromFile
public static org.dom4j.Document readDocumentFromFile(java.io.File file,
boolean validate)
throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
readDocumentFromStream
public static org.dom4j.Document readDocumentFromStream(java.io.InputStream is)
throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
readDocumentFromStream
public static org.dom4j.Document readDocumentFromStream(java.io.InputStream is,
boolean validate)
throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
readDocumentFromURL
public static org.dom4j.Document readDocumentFromURL(java.lang.String url)
throws org.dom4j.DocumentException,
java.io.IOException
- Throws:
org.dom4j.DocumentException
java.io.IOException
readDocumentFromURL
public static org.dom4j.Document readDocumentFromURL(java.lang.String url,
boolean validate)
throws org.dom4j.DocumentException,
java.io.IOException
- Throws:
org.dom4j.DocumentException
java.io.IOException
readDocumentFromXML
public static org.dom4j.Document readDocumentFromXML(java.lang.String xml)
throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
readDocumentFromXML
public static org.dom4j.Document readDocumentFromXML(java.lang.String xml,
boolean validate)
throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException