|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnu.xom.canonical.Canonicalizer
This class writes XML in the format specified by Canonical XML Version 1.0.
Only complete documents can be canonicalized. Document subset canonicalization is not yet supported.
Constructor Summary | |
Canonicalizer(java.io.OutputStream out)
Creates a Canonicalizer that outputs a
canonical XML document with comments. |
|
Canonicalizer(java.io.OutputStream out,
boolean withComments)
Creates a Canonicalizer that outputs a
canonical XML document with or without comments. |
Method Summary | |
void |
write(Document doc)
Serializes a document onto the output stream using the canonical XML algorithm. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Canonicalizer(java.io.OutputStream out)
Creates a Canonicalizer
that outputs a
canonical XML document with comments.
out
- the OutputStream
the document
is written ontopublic Canonicalizer(java.io.OutputStream out, boolean withComments)
Creates a Canonicalizer
that outputs a
canonical XML document with or without comments.
out
- the OutputStream
the document
is written ontowithComments
- true if comments should be included
in the output, false otherwiseMethod Detail |
public final void write(Document doc) throws java.io.IOException
Serializes a document onto the output stream using the canonical XML algorithm.
doc
- the Document
to serialize
java.io.IOException
- if the underlying OutputStream
encounters an I/O error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |