public class OrderedAttributeXMLWriter extends XMLWriterImpl
XMLWriterImpl,
that writes the attributes ordered alphabetically. This is mainly
useful for test purposes, when a canonical representation of the
result is required for comparing against an expected value.| Constructor and Description |
|---|
OrderedAttributeXMLWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
startElement(java.lang.String pNamespaceURI,
java.lang.String pLocalName,
java.lang.String pQName,
org.xml.sax.Attributes pAttrs)
Starts a new element.
|
canEncode, characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getMarshaller, getWriter, ignorableWhitespace, init, processingInstruction, setDocumentLocator, setWriter, skippedEntity, startDocument, startPrefixMappingpublic void startElement(java.lang.String pNamespaceURI,
java.lang.String pLocalName,
java.lang.String pQName,
org.xml.sax.Attributes pAttrs)
throws org.xml.sax.SAXException
XMLWriterImplstartElement in interface org.xml.sax.ContentHandlerstartElement in class XMLWriterImplpNamespaceURI - The namespace URI, if any, or nullpLocalName - The local name, without prefix, or nullpQName - The qualified name, including a prefix, or nullpAttrs - The element attributesorg.xml.sax.SAXException - Thrown in case of an IOException.