public class StaxUtil
extends java.lang.Object
Constructor and Description |
---|
StaxUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
constantToString(int constant) |
static void |
copyReaderToWriter(XMLStreamReader in,
XMLStreamWriter out)
Copys all the events from the input to the output, without going past
an unmatch end element.
|
static java.lang.String |
getNamespacePrefix(XMLStreamWriter out,
java.lang.String namespace)
Ensures that a given namespace exists within the namespace context
given and returns the prefix.
|
static java.lang.String |
printStreamState(XMLStreamReader in) |
static java.lang.String |
qnameToString(XMLStreamWriter out,
javax.xml.namespace.QName qname)
Converts a QName to a String using the context of a XMLStreamWriter.
|
static void |
repairNamespace(XMLStreamWriter out,
java.lang.String namespace)
Ensures that a given namespace exists within the namespace context
given.
|
static void |
repairNamespace(XMLStreamWriter out,
java.lang.String prefix,
java.lang.String namespace)
Ensures that a given prefix->namespace mapping exists within the
namespace context given.
|
static javax.xml.namespace.QName |
resolveStringToQName(java.lang.String string,
javax.xml.namespace.NamespaceContext context) |
static javax.xml.namespace.QName |
resolveStringToQName(java.lang.String string,
XMLStreamReader in) |
static XMLStreamWriter |
toRepairingXMLStreamWriter(XMLStreamWriter out) |
static void |
writeAttribute(XMLStreamWriter out,
javax.xml.namespace.QName name,
java.lang.String value) |
static void |
writeEndElement(XMLStreamWriter out,
javax.xml.namespace.QName name) |
static void |
writeStartElement(XMLStreamWriter out,
javax.xml.namespace.QName name) |
public static final L10N L
public static javax.xml.namespace.QName resolveStringToQName(java.lang.String string, XMLStreamReader in) throws XMLStreamException
XMLStreamException
public static javax.xml.namespace.QName resolveStringToQName(java.lang.String string, javax.xml.namespace.NamespaceContext context) throws XMLStreamException
XMLStreamException
public static void repairNamespace(XMLStreamWriter out, java.lang.String namespace) throws XMLStreamException
XMLStreamException
public static java.lang.String getNamespacePrefix(XMLStreamWriter out, java.lang.String namespace) throws XMLStreamException
XMLStreamException
public static void repairNamespace(XMLStreamWriter out, java.lang.String prefix, java.lang.String namespace) throws XMLStreamException
XMLStreamException
public static XMLStreamWriter toRepairingXMLStreamWriter(XMLStreamWriter out)
public static void copyReaderToWriter(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamException
XMLStreamException
public static java.lang.String constantToString(int constant) throws XMLStreamException
XMLStreamException
public static java.lang.String printStreamState(XMLStreamReader in) throws XMLStreamException
XMLStreamException
public static java.lang.String qnameToString(XMLStreamWriter out, javax.xml.namespace.QName qname) throws XMLStreamException
XMLStreamException
public static void writeStartElement(XMLStreamWriter out, javax.xml.namespace.QName name) throws XMLStreamException
XMLStreamException
public static void writeEndElement(XMLStreamWriter out, javax.xml.namespace.QName name) throws XMLStreamException
XMLStreamException
public static void writeAttribute(XMLStreamWriter out, javax.xml.namespace.QName name, java.lang.String value) throws XMLStreamException
XMLStreamException