com.sun.xml.bind.v2.runtime.output
Class C14nXmlOutput

java.lang.Object
  extended by com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl
      extended by com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput
          extended by 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

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
C14nXmlOutput(java.io.OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler)
           
 
Method Summary
 void attribute(int prefix, java.lang.String localName, java.lang.String value)
           
 void attribute(Name name, java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

C14nXmlOutput

public C14nXmlOutput(java.io.OutputStream out,
                     Encoded[] localNames,
                     boolean namedAttributesAreOrdered,
                     CharacterEscapeHandler escapeHandler)
Method Detail

attribute

public void attribute(Name name,
                      java.lang.String value)
               throws java.io.IOException
Specified by:
attribute in interface XmlOutput
Overrides:
attribute in class UTF8XmlOutput
Throws:
java.io.IOException

attribute

public void attribute(int prefix,
                      java.lang.String localName,
                      java.lang.String value)
               throws java.io.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:
java.io.IOException

endStartTag

public void endStartTag()
                 throws java.io.IOException
Specified by:
endStartTag in interface XmlOutput
Overrides:
endStartTag in class UTF8XmlOutput
Throws:
java.io.IOException

writeNsDecls

protected void writeNsDecls(int base)
                     throws java.io.IOException
Write namespace declarations after sorting them.

Overrides:
writeNsDecls in class UTF8XmlOutput
Throws:
java.io.IOException