public class TransformImplCanonicalXML extends Transform
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_ALGORITHM_URI_
The default algorithm URI for this algorithm implementation.
|
protected boolean |
omitComments_
Contains the information wheter to omit comments or not.
|
inputNodeSet_, inputOctetStream_, inputURI_| Constructor and Description |
|---|
TransformImplCanonicalXML()
Standard constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Element |
toElement(org.w3c.dom.Document signatureDOMDoc)
Returns the DOM element representation of the transform.
|
java.lang.Object |
transform()
Creates a canonical physical representation of the specified input according to the standard mentioned
in the description of this class.
|
distributeNSDeclarations, setInput, setInput, skipStylesheetElem, withdrawDistributedNSDeclarationsgetURI, setParameters, setURIprotected static final java.lang.String DEFAULT_ALGORITHM_URI_
protected boolean omitComments_
true for this
class, but can be changed by superclasses.public TransformImplCanonicalXML()
http://www.w3.org/TR/2001/REC-xml-c14n-20010315.public org.w3c.dom.Element toElement(org.w3c.dom.Document signatureDOMDoc)
throws AlgorithmException
toElement in class AlgorithmsignatureDOMDoc - The DOM document which should be used to create necessary DOM nodes.AlgorithmException - if no identifying URI has been specified for this transform.public java.lang.Object transform()
throws AlgorithmException
If the input has been specified as an octet stream with method Transform.setInput(InputStream, URI),
this octet stream is treated as the physical representation of a well-formed XML document. The octet
stream will be parsed, and a XPath node set will be produced containing all nodes of the XML document.
Alternatively, the input can be specified directly as XPath node set with method Transform.setInput(NodeList, URI).
In any case, the XPath node set is converted to the canonical physical representation as definied in the standard mentioned in the description of this class.
transform in class TransformAlgorithmException - if no input has been set previously, if converting a XPath node set input
into a octet stream input fails, or if computing the canonical physical
representation fails for any reason.