Java Doc for Canonicalizer20010315ExclOmitComments.java in  » 6.0-JDK-Modules-com.sun » xws-security » com » sun » xml » wss » impl » transform » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » xws security » com.sun.xml.wss.impl.transform 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
final static  AttrCompareCOMPARE
    
final static  intNODE_AFTER_DOCUMENT_ELEMENT
    
final static  intNODE_BEFORE_DOCUMENT_ELEMENT
    
final static  intNODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT
    
final static  StringXML
    
final static  StringXMLNS
    
final static  StringXMLNS_URI
    
 Node_excludeNode
     The node to be skiped/excluded from the DOM tree in subtree canonicalizations.
 boolean_includeComments
    
 TreeSet_inclusiveNSSet
     This Set contains the names (Strings like "xmlns" or "xmlns:foo") of the inclusive namespaces.
 OutputStream_writer
    
 Set_xpathNodeSet
    
 XMLCryptoContextcryptoContext
    
final static  byte[]equalsStr
    
final protected static  AttrnullNode
    
 booleanreset
    
 SettokenSet
    

Constructor Summary
public  Canonicalizer20010315ExclOmitComments()
    

Method Summary
final  voidcanonicalizeXPathNodeSet(Node currentNode, NameSpaceSymbTable ns)
     Canoicalizes all the nodes included in the currentNode and contained in the _xpathNodeSet field.
protected static  NodedeReference(Node node, XMLCryptoContext context)
    
public  voidengineCanonicalizeXPathNodeSet(Set xpathNodeSet, String inclusiveNamespaces, java.io.OutputStream stream, XMLCryptoContext context)
    
final static  voidgetParentNameSpaces(Element el, NameSpaceSymbTable ns)
    
final static  intgetPositionRelativeToDocumentElement(Node currentNode)
     Checks whether a Comment or ProcessingInstruction is before or after the document element.
final  IteratorhandleAttributes(Element E, NameSpaceSymbTable ns, boolean isOutputElement)
    
final public  booleanis_includeComments()
    
final static  voidoutputAttrToWriter(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 &lt;
  • all quotation mark characters with &quot;
  • and the whitespace characters #x9, #xA, and #xD, with character references.
final static  voidoutputCommentToWriter(Comment currentComment, OutputStream writer)
    
final static  voidoutputPItoWriter(ProcessingInstruction currentPI, OutputStream writer)
     Outputs a PI to the internal Writer.
final static  voidoutputTextToWriter(String text, OutputStream writer)
     Outputs a Text of CDATA section to the internal Writer.
final static  voidoutputTextToWriter(String text, OutputStream writer, boolean skipWhiteSpace)
     Outputs a Text of CDATA section to the internal Writer.
final  voidprintBinaryToken(Node currentNode, NameSpaceSymbTable ns)
    
 voidremoveNodes(Node rootNode, Set result)
    
public  voidsetWriter(OutputStream _writer)
    
final public  voidset_includeComments(boolean comments)
    
final static  voidwriteCharToUtf8(char c, OutputStream out)
    
final static  voidwriteStringToUtf8(String str, OutputStream out)
    

Field Detail
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)



XML
final static String XML(Code)



XMLNS
final static String XMLNS(Code)



XMLNS_URI
final static String XMLNS_URI(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.



_writer
OutputStream _writer(Code)



_xpathNodeSet
Set _xpathNodeSet(Code)



cryptoContext
XMLCryptoContext cryptoContext(Code)



equalsStr
final static byte[] equalsStr(Code)



nullNode
final protected static Attr nullNode(Code)



reset
boolean reset(Code)



tokenSet
Set tokenSet(Code)




Constructor Detail
Canonicalizer20010315ExclOmitComments
public Canonicalizer20010315ExclOmitComments()(Code)
Constructor Canonicalizer20010315ExclOmitComments




Method Detail
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 -



deReference
protected static Node deReference(Node node, XMLCryptoContext context) throws URIReferenceException(Code)



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 -



getPositionRelativeToDocumentElement
final static int getPositionRelativeToDocumentElement(Node currentNode)(Code)
Checks whether a Comment or ProcessingInstruction is before or after the document element. This is needed for prepending or appending "\n"s.
Parameters:
  currentNode - comment or pi to check NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT or NODE_AFTER_DOCUMENT_ELEMENT
See Also:   Canonicalizer20010315ExclOmitComments.NODE_BEFORE_DOCUMENT_ELEMENT
See Also:   Canonicalizer20010315ExclOmitComments.NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT
See Also:   Canonicalizer20010315ExclOmitComments.NODE_AFTER_DOCUMENT_ELEMENT



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 &amp;
  • all open angle brackets (<) with &lt;
  • all quotation mark characters with &quot;
  • 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 &#xD;)

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 -



outputPItoWriter
final static void outputPItoWriter(ProcessingInstruction currentPI, OutputStream writer) throws IOException(Code)
Outputs a PI to the internal Writer.
Parameters:
  currentPI -
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 -



printBinaryToken
final void printBinaryToken(Node currentNode, NameSpaceSymbTable ns) throws CanonicalizationException, IOException, URIReferenceException(Code)



removeNodes
void removeNodes(Node rootNode, Set result)(Code)



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.



writeCharToUtf8
final static void writeCharToUtf8(char c, OutputStream out) throws IOException(Code)



writeStringToUtf8
final static void writeStringToUtf8(String str, OutputStream out) throws IOException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.