XML Security, 1.6

com.ibm.xml.enc.dom
Class C14nUtil

java.lang.Object
  extended by com.ibm.xml.enc.dom.C14nUtil

final class C14nUtil
extends java.lang.Object

Utility functions for canonicalization.


Nested Class Summary
(package private) static class C14nUtil.Attributes
           
(package private) static class C14nUtil.NodeListImpl
           
 
Constructor Summary
C14nUtil()
           
 
Method Summary
(package private) static java.lang.String createSortedString(org.w3c.dom.Attr node, org.w3c.dom.Node element)
          xmlns= -> "" xmlns:p= -> "p" a= -> "a" (No namespace, not `no prefix') p:a= -> "a"
(package private) static void heapSort(int[] indexMap, java.lang.String[] pd, int length)
          Sort String array.
(package private) static boolean isAncestor(java.lang.Object me, org.w3c.dom.Node anc)
           
(package private) static void serializeAttribute(org.w3c.dom.Node attr, java.io.Writer wr, boolean checkURI)
           
(package private) static void serializeAttribute(java.lang.String name, java.lang.String value, java.io.Writer wr, boolean checkURI)
           
(package private) static void serializeComment(org.w3c.dom.Node node, java.io.Writer wr)
           
(package private) static void serializePI(org.w3c.dom.Node node, java.io.Writer wr)
           
(package private) static void serializeText(java.lang.String text, java.io.Writer wr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

C14nUtil

C14nUtil()
Method Detail

serializeText

static final void serializeText(java.lang.String text,
                                java.io.Writer wr)
                         throws java.io.IOException
Throws:
java.io.IOException

serializePI

static final void serializePI(org.w3c.dom.Node node,
                              java.io.Writer wr)
                       throws java.io.IOException
Throws:
java.io.IOException

serializeComment

static final void serializeComment(org.w3c.dom.Node node,
                                   java.io.Writer wr)
                            throws java.io.IOException
Throws:
java.io.IOException

serializeAttribute

static final void serializeAttribute(org.w3c.dom.Node attr,
                                     java.io.Writer wr,
                                     boolean checkURI)
                              throws java.io.IOException
Throws:
java.io.IOException

serializeAttribute

static final void serializeAttribute(java.lang.String name,
                                     java.lang.String value,
                                     java.io.Writer wr,
                                     boolean checkURI)
                              throws java.io.IOException
Throws:
java.io.IOException

heapSort

static void heapSort(int[] indexMap,
                     java.lang.String[] pd,
                     int length)
Sort String array.


createSortedString

static java.lang.String createSortedString(org.w3c.dom.Attr node,
                                           org.w3c.dom.Node element)
xmlns= -> "" xmlns:p= -> "p" a= -> "a" (No namespace, not `no prefix') p:a= -> "a"


isAncestor

static boolean isAncestor(java.lang.Object me,
                          org.w3c.dom.Node anc)
Parameters:
me - Node or Attributes

XML Security, 1.6

Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.