| java.lang.Object com.caucho.xml.stream.StaxUtil
StaxUtil | public class StaxUtil (Code) | | Utility class to do namespace repairs on XMLStreamWriters that don't have
repair enabled. Used by JAXB.
|
Field Summary | |
final public static L10N | L |
Method Summary | |
public static String | constantToString(int constant) | public static void | copyReaderToWriter(XMLStreamReader in, XMLStreamWriter out) Copys all the events from the input to the output, without going past
an unmatch end element. | public static String | getNamespacePrefix(XMLStreamWriter out, String namespace) Ensures that a given namespace exists within the namespace context
given and returns the prefix. | public static String | printStreamState(XMLStreamReader in) | public static String | qnameToString(XMLStreamWriter out, QName qname) Converts a QName to a String using the context of a XMLStreamWriter. | public static void | repairNamespace(XMLStreamWriter out, String namespace) Ensures that a given namespace exists within the namespace context
given. | public static void | repairNamespace(XMLStreamWriter out, String prefix, String namespace) Ensures that a given prefix->namespace mapping exists within the
namespace context given. | public static QName | resolveStringToQName(String string, XMLStreamReader in) | public static QName | resolveStringToQName(String string, NamespaceContext context) | public static XMLStreamWriter | toRepairingXMLStreamWriter(XMLStreamWriter out) | public static void | writeAttribute(XMLStreamWriter out, QName name, String value) | public static void | writeEndElement(XMLStreamWriter out, QName name) | public static void | writeStartElement(XMLStreamWriter out, QName name) |
L | final public static L10N L(Code) | | |
copyReaderToWriter | public static void copyReaderToWriter(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamException(Code) | | Copys all the events from the input to the output, without going past
an unmatch end element.
E.g.: if the input is at the start of , it will only read just past
|
qnameToString | public static String qnameToString(XMLStreamWriter out, QName qname) throws XMLStreamException(Code) | | Converts a QName to a String using the context of a XMLStreamWriter.
Intended for writing QNames as attributes or text in a XMLStreamWriter
that's passed in.
|
|
|