Class C14nXmlOutput
java.lang.Object
com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl
com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput
com.sun.xml.bind.v2.runtime.output.C14nXmlOutput
- All Implemented Interfaces:
XmlOutput
XmlOutput
that generates canonical XML.- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from class com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput
closeStartTagPending, octetBuffer, octetBufferIndex, out
Fields inherited from class com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl
nsContext, nsUriIndex2prefixIndex, serializer
-
Constructor Summary
ConstructorDescriptionC14nXmlOutput
(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
protected void
writeNsDecls
(int base) Write namespace declarations after sorting them.Methods inherited from class com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput
beginStartTag, beginStartTag, closeStartTag, endDocument, endTag, endTag, flushBuffer, setHeader, startDocument, text, text, text, text, write, write, write, writeNsDecl
-
Constructor Details
-
C14nXmlOutput
public C14nXmlOutput(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler)
-
-
Method Details
-
attribute
- Specified by:
attribute
in interfaceXmlOutput
- Overrides:
attribute
in classUTF8XmlOutput
- Throws:
IOException
-
attribute
- Specified by:
attribute
in interfaceXmlOutput
- Overrides:
attribute
in classUTF8XmlOutput
- Parameters:
prefix
- -1 if this attribute does not have a prefix (this handling differs from that of elements.)- Throws:
IOException
-
endStartTag
- Specified by:
endStartTag
in interfaceXmlOutput
- Overrides:
endStartTag
in classUTF8XmlOutput
- Throws:
IOException
-
writeNsDecls
Write namespace declarations after sorting them.- Overrides:
writeNsDecls
in classUTF8XmlOutput
- Throws:
IOException
-