Package ca.uhn.fhir.util
Class XmlUtil
- java.lang.Object
-
- ca.uhn.fhir.util.XmlUtil
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXmlUtil.MyEscaper
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XMLEventReadercreateXmlReader(Reader reader)static XMLStreamWritercreateXmlStreamWriter(Writer theWriter)static XMLEventWritercreateXmlWriter(Writer theWriter)static Stringencode(List<XMLEvent> theEvents)Encode a set of StAX events into a Stringstatic List<XMLEvent>parse(String theValue)Parses an XML string into a set of StAX eventsstatic DocumentparseDocument(String theInput)
-
-
-
Method Detail
-
createXmlReader
public static XMLEventReader createXmlReader(Reader reader) throws FactoryConfigurationError, XMLStreamException
-
createXmlStreamWriter
public static XMLStreamWriter createXmlStreamWriter(Writer theWriter) throws FactoryConfigurationError, XMLStreamException
-
createXmlWriter
public static XMLEventWriter createXmlWriter(Writer theWriter) throws FactoryConfigurationError, XMLStreamException
-
encode
public static String encode(List<XMLEvent> theEvents)
Encode a set of StAX events into a String
-
parse
public static List<XMLEvent> parse(String theValue)
Parses an XML string into a set of StAX events
-
parseDocument
public static Document parseDocument(String theInput) throws IOException, SAXException
- Throws:
IOExceptionSAXException
-
-