public class OrderedAttributeXMLWriter extends XMLWriterImpl
XMLWriterImpl,
which 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(String pNamespaceURI,
String pLocalName,
String pQName,
Attributes pAttrs)
Starts a new element.
|
canEncode, characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getEncoding, getIndentString, getLineFeed, getWriter, ignorableWhitespace, isDeclarating, isFlushing, isIndenting, processingInstruction, setDeclarating, setDocumentLocator, setEncoding, setFlushing, setIndenting, setIndentString, setLineFeed, setWriter, skippedEntity, startDocument, startPrefixMappingpublic void startElement(String pNamespaceURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException
XMLWriterImplstartElement in interface 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 attributesSAXException - Thrown in case of an IOException.Copyright © 2005-2015 Apache Software Foundation. All Rights Reserved.