public class CanonicalizerPhysical extends CanonicalizerBase
COMPARE, NODE_AFTER_DOCUMENT_ELEMENT, NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT, XML, XML_LANG_URI, XMLNS, XMLNS_URI
Constructor and Description |
---|
CanonicalizerPhysical()
Constructor Canonicalizer20010315
|
Modifier and Type | Method and Description |
---|---|
protected void |
circumventBugIfNeeded(XMLSignatureInput input) |
void |
engineCanonicalizeSubTree(Node rootNode,
String inclusiveNamespaces,
boolean propagateDefaultNamespace,
OutputStream writer)
Always throws a CanonicalizationException.
|
void |
engineCanonicalizeSubTree(Node rootNode,
String inclusiveNamespaces,
OutputStream writer)
Always throws a CanonicalizationException.
|
void |
engineCanonicalizeXPathNodeSet(Set<Node> xpathNodeSet,
String inclusiveNamespaces,
OutputStream writer)
Always throws a CanonicalizationException.
|
String |
engineGetURI()
Returns the URI of this engine.
|
protected void |
handleParent(Element e,
NameSpaceSymbTable ns) |
protected void |
outputAttributes(Element element,
NameSpaceSymbTable ns,
Map<String,byte[]> cache,
OutputStream writer)
Output the attributes for this node in XPathNodeSet c14n.
|
protected void |
outputAttributesSubtree(Element element,
NameSpaceSymbTable ns,
Map<String,byte[]> cache,
OutputStream writer)
Output the Attr[]s for the given element.
|
protected void |
outputCommentToWriter(Comment currentComment,
OutputStream writer,
int position)
Method outputCommentToWriter
|
protected void |
outputPItoWriter(ProcessingInstruction currentPI,
OutputStream writer,
int position)
Outputs a PI to the internal Writer.
|
engineCanonicalize, engineCanonicalizeSubTree, engineCanonicalizeSubTree, engineCanonicalizeXPathNodeSet, getNullNode, isVisible, isVisibleDO, isVisibleInt, outputAttrToWriter
engineCanonicalize
public CanonicalizerPhysical()
public void engineCanonicalizeXPathNodeSet(Set<Node> xpathNodeSet, String inclusiveNamespaces, OutputStream writer) throws CanonicalizationException
engineCanonicalizeXPathNodeSet
in class CanonicalizerSpi
xpathNodeSet
- inclusiveNamespaces
- writer
- OutputStream to write the canonicalization resultCanonicalizationException
- alwayspublic void engineCanonicalizeSubTree(Node rootNode, String inclusiveNamespaces, OutputStream writer) throws CanonicalizationException
engineCanonicalizeSubTree
in class CanonicalizerSpi
rootNode
- inclusiveNamespaces
- writer
- OutputStream to write the canonicalization resultCanonicalizationException
public void engineCanonicalizeSubTree(Node rootNode, String inclusiveNamespaces, boolean propagateDefaultNamespace, OutputStream writer) throws CanonicalizationException
engineCanonicalizeSubTree
in class CanonicalizerSpi
rootNode
- inclusiveNamespaces
- writer
- OutputStream to write the canonicalization resultpropagateDefaultNamespace
- If true the default namespace will be propagated to the c14n-ized root elementCanonicalizationException
protected void outputAttributesSubtree(Element element, NameSpaceSymbTable ns, Map<String,byte[]> cache, OutputStream writer) throws CanonicalizationException, DOMException, IOException
#outputAttributes(Element, NameSpaceSymbTable, Map)
,
whereas it takes into account that subtree-c14n is -- well -- subtree-based.
So if the element in question isRoot of c14n, it's parent is not in the
node set, as well as all other ancestors.element
- ns
- cache
- writer
- OutputStream to write the canonicalization resultCanonicalizationException,
- DOMException, IOExceptionCanonicalizationException
DOMException
IOException
protected void outputAttributes(Element element, NameSpaceSymbTable ns, Map<String,byte[]> cache, OutputStream writer) throws CanonicalizationException, DOMException, IOException
CanonicalizerBase
writer
- OutputStream to write the canonicalization resultCanonicalizationException
DOMException
IOException
protected void circumventBugIfNeeded(XMLSignatureInput input) throws XMLParserException, IOException
XMLParserException
IOException
protected void handleParent(Element e, NameSpaceSymbTable ns)
handleParent
in class CanonicalizerBase
public final String engineGetURI()
engineGetURI
in class CanonicalizerSpi
protected void outputPItoWriter(ProcessingInstruction currentPI, OutputStream writer, int position) throws IOException
CanonicalizerBase
outputPItoWriter
in class CanonicalizerBase
writer
- where to write the thingsIOException
protected void outputCommentToWriter(Comment currentComment, OutputStream writer, int position) throws IOException
CanonicalizerBase
outputCommentToWriter
in class CanonicalizerBase
writer
- writer where to write the thingsIOException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.