| java.lang.Object com.sun.xml.wss.impl.transform.Canonicalizer20010315ExclOmitComments
Canonicalizer20010315ExclOmitComments | public class Canonicalizer20010315ExclOmitComments (Code) | | Implements " Exclusive XML
Canonicalization, Version 1.0 "
Credits: During restructuring of the Canonicalizer framework, Ren??
Kollmorgen from Software AG submitted an implementation of ExclC14n which
fitted into the old architecture and which based heavily on my old (and slow)
implementation of "Canonical XML". A big "thank you" to Ren?? for this.
THIS implementation is a complete rewrite of the algorithm.
author: Christian Geuer-Pollmann author: K.Venugopal@sun.com version: $Revision: 1.6 $ See Also:
* XML Canonicalization, Version 1.0 |
Method Summary | |
final void | canonicalizeXPathNodeSet(Node currentNode, NameSpaceSymbTable ns) Canoicalizes all the nodes included in the currentNode and contained in the
_xpathNodeSet field. | protected static Node | deReference(Node node, XMLCryptoContext context) | public void | engineCanonicalizeXPathNodeSet(Set xpathNodeSet, String inclusiveNamespaces, java.io.OutputStream stream, XMLCryptoContext context) | final static void | getParentNameSpaces(Element el, NameSpaceSymbTable ns) | final static int | getPositionRelativeToDocumentElement(Node currentNode) Checks whether a Comment or ProcessingInstruction is before or after the
document element. | final Iterator | handleAttributes(Element E, NameSpaceSymbTable ns, boolean isOutputElement) | final public boolean | is_includeComments() | final static void | outputAttrToWriter(String name, String value, OutputStream writer) Outputs an Attribute to the internal Writer.
The string value of the node is modified by replacing
- all ampersands (&) with
&
- all open angle brackets (<) with
<
- all quotation mark characters with
"
- and the whitespace characters
#x9 , #xA, and #xD, with character
references. | final static void | outputCommentToWriter(Comment currentComment, OutputStream writer) | final static void | outputPItoWriter(ProcessingInstruction currentPI, OutputStream writer) Outputs a PI to the internal Writer. | final static void | outputTextToWriter(String text, OutputStream writer) Outputs a Text of CDATA section to the internal Writer. | final static void | outputTextToWriter(String text, OutputStream writer, boolean skipWhiteSpace) Outputs a Text of CDATA section to the internal Writer. | final void | printBinaryToken(Node currentNode, NameSpaceSymbTable ns) | void | removeNodes(Node rootNode, Set result) | public void | setWriter(OutputStream _writer) | final public void | set_includeComments(boolean comments) | final static void | writeCharToUtf8(char c, OutputStream out) | final static void | writeStringToUtf8(String str, OutputStream out) |
COMPARE | final static AttrCompare COMPARE(Code) | | |
NODE_AFTER_DOCUMENT_ELEMENT | final static int NODE_AFTER_DOCUMENT_ELEMENT(Code) | | |
NODE_BEFORE_DOCUMENT_ELEMENT | final static int NODE_BEFORE_DOCUMENT_ELEMENT(Code) | | |
NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT | final static int NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT(Code) | | |
_excludeNode | Node _excludeNode(Code) | | The node to be skiped/excluded from the DOM tree
in subtree canonicalizations.
|
_includeComments | boolean _includeComments(Code) | | |
_inclusiveNSSet | TreeSet _inclusiveNSSet(Code) | | This Set contains the names (Strings like "xmlns" or "xmlns:foo") of
the inclusive namespaces.
|
equalsStr | final static byte[] equalsStr(Code) | | |
nullNode | final protected static Attr nullNode(Code) | | |
Canonicalizer20010315ExclOmitComments | public Canonicalizer20010315ExclOmitComments()(Code) | | Constructor Canonicalizer20010315ExclOmitComments
|
canonicalizeXPathNodeSet | final void canonicalizeXPathNodeSet(Node currentNode, NameSpaceSymbTable ns) throws CanonicalizationException, IOException, URIReferenceException(Code) | | Canoicalizes all the nodes included in the currentNode and contained in the
_xpathNodeSet field.
Parameters: currentNode - Parameters: ns - throws: CanonicalizationException - throws: IOException - |
engineCanonicalizeXPathNodeSet | public void engineCanonicalizeXPathNodeSet(Set xpathNodeSet, String inclusiveNamespaces, java.io.OutputStream stream, XMLCryptoContext context) throws CanonicalizationException, URIReferenceException(Code) | | Method engineCanonicalizeXPathNodeSet
Parameters: xpathNodeSet - Parameters: inclusiveNamespaces - throws: CanonicalizationException - |
getParentNameSpaces | final static void getParentNameSpaces(Element el, NameSpaceSymbTable ns)(Code) | | Adds to ns the definitons from the parent elements of el
Parameters: el - Parameters: ns - |
handleAttributes | final Iterator handleAttributes(Element E, NameSpaceSymbTable ns, boolean isOutputElement) throws CanonicalizationException(Code) | | Parameters: E - throws: CanonicalizationException - |
is_includeComments | final public boolean is_includeComments()(Code) | | Returns the _includeComments. |
outputAttrToWriter | final static void outputAttrToWriter(String name, String value, OutputStream writer) throws IOException(Code) | | Outputs an Attribute to the internal Writer.
The string value of the node is modified by replacing
- all ampersands (&) with
&
- all open angle brackets (<) with
<
- all quotation mark characters with
"
- and the whitespace characters
#x9 , #xA, and #xD, with character
references. The character references are written in uppercase
hexadecimal with no leading zeroes (for example, #xD is represented
by the character reference 
 )
Parameters: name - Parameters: value - Parameters: writer - throws: IOException - |
outputCommentToWriter | final static void outputCommentToWriter(Comment currentComment, OutputStream writer) throws IOException(Code) | | Method outputCommentToWriter
Parameters: currentComment - Parameters: writer - TODO throws: IOException - |
outputTextToWriter | final static void outputTextToWriter(String text, OutputStream writer) throws IOException(Code) | | Outputs a Text of CDATA section to the internal Writer.
Parameters: text - Parameters: writer - TODO throws: IOException - |
outputTextToWriter | final static void outputTextToWriter(String text, OutputStream writer, boolean skipWhiteSpace) throws IOException(Code) | | Outputs a Text of CDATA section to the internal Writer.
Parameters: text - Parameters: writer - TODO Parameters: skipWhiteSpace - S ::= (#x20 | #x9 | #xD | #xA)+ throws: IOException - |
setWriter | public void setWriter(OutputStream _writer)(Code) | | Parameters: _writer - The _writer to set. |
set_includeComments | final public void set_includeComments(boolean comments)(Code) | | Parameters: comments - The _includeComments to set. |
|
|