| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectnu.xom.canonical.Canonicalizer
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(OutputStream out)
Creates a Canonicalizer that outputs a
canonical XML document with comments. | |
Canonicalizer(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 Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Canonicalizer(OutputStream out)
Creates a Canonicalizer
that outputs a
canonical XML document with comments.
out
- the output stream the document
is written onto
public Canonicalizer(OutputStream out,
boolean withComments)
Creates a Canonicalizer
that outputs a
canonical XML document with or without comments.
out
- the output stream the document
is written ontowithComments
- true if comments should be included
in the output, false otherwiseMethod Detail |
public final void write(Document doc)
throws IOException
Serializes a document onto the output stream using the canonical XML algorithm.
doc
- the document to serialize
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 |