com.sun.xml.bind.v2.runtime.output
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.
- See Also:
C14nSupport_ArchitectureDocument
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, toBytes, write, write, write, writeNsDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
C14nXmlOutput
public C14nXmlOutput(OutputStream out,
Encoded[] localNames,
boolean namedAttributesAreOrdered)
attribute
public void attribute(Name name,
String value)
throws IOException
- Specified by:
attribute
in interface XmlOutput
- Overrides:
attribute
in class UTF8XmlOutput
- Throws:
IOException
attribute
public void attribute(int prefix,
String localName,
String value)
throws IOException
- Specified by:
attribute
in interface XmlOutput
- Overrides:
attribute
in class UTF8XmlOutput
- 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 interface XmlOutput
- Overrides:
endStartTag
in class UTF8XmlOutput
- Throws:
IOException
writeNsDecls
protected void writeNsDecls(int base)
throws IOException
- Write namespace declarations after sorting them.
- Overrides:
writeNsDecls
in class UTF8XmlOutput
- Throws:
IOException