XmlOutput
public class C14nXmlOutput extends UTF8XmlOutput
XmlOutput
that generates canonical XML.closeStartTagPending, octetBuffer, octetBufferIndex, out
nsContext, 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, wait
beginStartTag, beginStartTag, closeStartTag, endDocument, endTag, endTag, flushBuffer, setHeader, startDocument, text, text, text, text, write, write, write, writeNsDecl
public 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 XmlOutput
attribute
in class UTF8XmlOutput
java.io.IOException
public void attribute(int prefix, java.lang.String localName, java.lang.String value) throws java.io.IOException
attribute
in interface XmlOutput
attribute
in class UTF8XmlOutput
prefix
- -1 if this attribute does not have a prefix
(this handling differs from that of elements.)java.io.IOException
public void endStartTag() throws java.io.IOException
endStartTag
in interface XmlOutput
endStartTag
in class UTF8XmlOutput
java.io.IOException
protected void writeNsDecls(int base) throws java.io.IOException
writeNsDecls
in class UTF8XmlOutput
java.io.IOException
Copyright © 2018 Oracle Corporation. All rights reserved.