org.aksw.commons.util
Class XmlUtils

java.lang.Object
  extended by org.aksw.commons.util.XmlUtils

public class XmlUtils
extends Object


Constructor Summary
XmlUtils()
           
 
Method Summary
static Document createFromString(String text)
           
static String getPageModificationDate(Document node)
           
static Document loadFromStream(InputStream inputStream)
           
static Document openFile(File file)
           
static Document openUrl(String location)
           
static String toString(Node node)
           
static void toText(Node node, OutputStream out)
           
 
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

toString

public static String toString(Node node)

createFromString

public static Document createFromString(String text)
                                 throws Exception
Throws:
Exception

toText

public static void toText(Node node,
                          OutputStream out)
                   throws TransformerFactoryConfigurationError,
                          TransformerException
Throws:
TransformerFactoryConfigurationError
TransformerException

openFile

public static Document openFile(File file)
                         throws Exception
Throws:
Exception

openUrl

public static Document openUrl(String location)
                        throws Exception
Throws:
Exception

loadFromStream

public static Document loadFromStream(InputStream inputStream)
                               throws Exception
Throws:
Exception

getPageModificationDate

public static String getPageModificationDate(Document node)


Copyright © 2012. All Rights Reserved.