- 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
public class C14nXmlOutput extends UTF8XmlOutput
XmlOutputthat generates canonical XML.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
-
Fields inherited from class org.glassfish.jaxb.runtime.v2.runtime.output.UTF8XmlOutput
closeStartTagPending, octetBuffer, octetBufferIndex, out
-
Fields inherited from class org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl
nsContext, nsUriIndex2prefixIndex, serializer
-
-
Constructor Summary
Constructors Constructor Description C14nXmlOutput(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattribute(int prefix, String localName, String value)voidattribute(Name name, String value)voidendStartTag()protected 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 Detail
-
C14nXmlOutput
public C14nXmlOutput(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler)
-
-
Method Detail
-
attribute
public void attribute(Name name, String value) throws IOException
- Specified by:
attributein interfaceXmlOutput- Overrides:
attributein classUTF8XmlOutput- Throws:
IOException
-
attribute
public void attribute(int prefix, String localName, String value) throws IOException- 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
public void endStartTag() throws IOException- Specified by:
endStartTagin interfaceXmlOutput- Overrides:
endStartTagin classUTF8XmlOutput- Throws:
IOException
-
writeNsDecls
protected void writeNsDecls(int base) throws IOExceptionWrite namespace declarations after sorting them.- Overrides:
writeNsDeclsin classUTF8XmlOutput- Throws:
IOException
-
-