Package org.apache.karaf.util
Class XmlUtils
- java.lang.Object
-
- org.apache.karaf.util.XmlUtils
-
public class XmlUtils extends Object
Utils class to manipulate XML document in a thread safe way.
-
-
Constructor Summary
Constructors Constructor Description XmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentBuilderdocumentBuilder()static Documentparse(File f)static Documentparse(File f, ErrorHandler errorHandler)static Documentparse(InputStream stream)static Documentparse(String uri)static voidtransform(Source xmlSource, Result outputTarget)static voidtransform(Source xsltSource, Source xmlSource, Result outputTarget)static Transformertransformer()static XMLReaderxmlReader()
-
-
-
Method Detail
-
parse
public static Document parse(String uri) throws TransformerException, IOException, SAXException, ParserConfigurationException
-
parse
public static Document parse(InputStream stream) throws TransformerException, IOException, SAXException, ParserConfigurationException
-
parse
public static Document parse(File f) throws TransformerException, IOException, SAXException, ParserConfigurationException
-
parse
public static Document parse(File f, ErrorHandler errorHandler) throws TransformerException, IOException, SAXException, ParserConfigurationException
-
transform
public static void transform(Source xmlSource, Result outputTarget) throws TransformerException
- Throws:
TransformerException
-
transform
public static void transform(Source xsltSource, Source xmlSource, Result outputTarget) throws TransformerException
- Throws:
TransformerException
-
xmlReader
public static XMLReader xmlReader() throws ParserConfigurationException, SAXException
-
documentBuilder
public static DocumentBuilder documentBuilder() throws ParserConfigurationException
- Throws:
ParserConfigurationException
-
transformer
public static Transformer transformer() throws TransformerConfigurationException
-
-