Class C14nXmlOutput
java.lang.Object
org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl
org.glassfish.jaxb.runtime.v2.runtime.output.UTF8XmlOutput
org.glassfish.jaxb.runtime.v2.runtime.output.C14nXmlOutput
- All Implemented Interfaces:
XmlOutput
XmlOutput that generates canonical XML.- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from class org.glassfish.jaxb.runtime.v2.runtime.output.UTF8XmlOutput
closeStartTagPending, octetBuffer, octetBufferIndex, outFields inherited from class org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl
nsContext, nsUriIndex2prefixIndex, serializer -
Constructor Summary
ConstructorsConstructorDescriptionC14nXmlOutput(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidprotected voidwriteNsDecls(int base) Write namespace declarations after sorting them.Methods inherited from class org.glassfish.jaxb.runtime.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:
attributein interfaceXmlOutput- Overrides:
attributein classUTF8XmlOutput- Throws:
IOException
-
attribute
- Specified by:
attributein interfaceXmlOutput- Overrides:
attributein classUTF8XmlOutput- Parameters:
prefix- -1 if this attribute does not have a prefix (this handling differs from that of elements.)- Throws:
IOException
-
endStartTag
- Specified by:
endStartTagin interfaceXmlOutput- Overrides:
endStartTagin classUTF8XmlOutput- Throws:
IOException
-
writeNsDecls
Write namespace declarations after sorting them.- Overrides:
writeNsDeclsin classUTF8XmlOutput- Throws:
IOException
-