XmlOutputpublic class C14nXmlOutput extends UTF8XmlOutput
XmlOutput that generates canonical XML.closeStartTagPending, octetBuffer, octetBufferIndex, outnsContext, nsUriIndex2prefixIndex, serializer| Constructor | Description |
|---|---|
C14nXmlOutput(java.io.OutputStream out,
Encoded[] localNames,
boolean namedAttributesAreOrdered,
CharacterEscapeHandler escapeHandler) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
attribute(int prefix,
java.lang.String localName,
java.lang.String value) |
|
void |
attribute(Name name,
java.lang.String value) |
|
void |
endStartTag() |
|
protected void |
writeNsDecls(int base) |
Write namespace declarations after sorting them.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginStartTag, beginStartTag, closeStartTag, endDocument, endTag, endTag, flushBuffer, setHeader, startDocument, text, text, text, text, write, write, write, writeNsDeclpublic C14nXmlOutput(java.io.OutputStream out,
Encoded[] localNames,
boolean namedAttributesAreOrdered,
CharacterEscapeHandler escapeHandler)
public void attribute(Name name, java.lang.String value) throws java.io.IOException
attribute in interface XmlOutputattribute in class UTF8XmlOutputjava.io.IOExceptionpublic void attribute(int prefix,
java.lang.String localName,
java.lang.String value)
throws java.io.IOException
attribute in interface XmlOutputattribute in class UTF8XmlOutputprefix - -1 if this attribute does not have a prefix
(this handling differs from that of elements.)java.io.IOExceptionpublic void endStartTag()
throws java.io.IOException
endStartTag in interface XmlOutputendStartTag in class UTF8XmlOutputjava.io.IOExceptionprotected void writeNsDecls(int base)
throws java.io.IOException
writeNsDecls in class UTF8XmlOutputjava.io.IOExceptionCopyright © 2017 Oracle Corporation. All rights reserved.