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
public class C14nXmlOutput extends UTF8XmlOutput
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
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 void
attribute(int prefix, String localName, String value)
void
attribute(Name name, String value)
void
endStartTag()
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 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:
attribute
in interfaceXmlOutput
- Overrides:
attribute
in classUTF8XmlOutput
- Throws:
IOException
-
attribute
public void attribute(int prefix, String localName, String value) throws IOException
- 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
public void endStartTag() throws IOException
- Specified by:
endStartTag
in interfaceXmlOutput
- Overrides:
endStartTag
in classUTF8XmlOutput
- Throws:
IOException
-
writeNsDecls
protected void writeNsDecls(int base) throws IOException
Write namespace declarations after sorting them.- Overrides:
writeNsDecls
in classUTF8XmlOutput
- Throws:
IOException
-
-