com.sun.xml.wss.impl.c14n
Class BaseCanonicalizer

java.lang.Object
  extended by com.sun.xml.wss.impl.c14n.BaseCanonicalizer
Direct Known Subclasses:
EXC14nStAXReaderBasedCanonicalizer, SAXC14nCanonicalizerImpl, StAXC14nCanonicalizerImpl

public abstract class BaseCanonicalizer
extends Object

Author:
Apache, K.Venugopal@sun.com //TODO: Refactor code ..

Nested Class Summary
static class BaseCanonicalizer.NamespaceContextImpl
           
 
Field Summary
protected  List _attrResult
           
protected  ArrayList _attrs
           
protected  ArrayList _nsAttrs
           
protected  List _nsResult
           
protected static int initalCacheSize
           
 
Constructor Summary
BaseCanonicalizer()
          Creates a new instance of BaseCanonicalizer
 
Method Summary
 void addParentNamespaces(List nsDecls)
           
protected  AttributeNS getAttributeNS()
           
 OutputStream getOutputStream()
           
static boolean namespaceIsAbsolute(String namespaceValue)
          Method namespaceIsAbsolute
static boolean namespaceIsRelative(String namespaceValue)
          Method namespaceIsRelative
 void reset()
           
protected  void resize()
           
 void setStream(OutputStream os)
           
static void sort(List list)
           
protected  void writeAttributes(Attributes attributes, Iterator itr)
           
protected  void writeAttributesNS(Iterator itr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_attrs

protected ArrayList _attrs

_nsAttrs

protected ArrayList _nsAttrs

_attrResult

protected List _attrResult

_nsResult

protected List _nsResult

initalCacheSize

protected static final int initalCacheSize
See Also:
Constant Field Values
Constructor Detail

BaseCanonicalizer

public BaseCanonicalizer()
Creates a new instance of BaseCanonicalizer

Method Detail

reset

public void reset()

setStream

public void setStream(OutputStream os)

getOutputStream

public OutputStream getOutputStream()

resize

protected final void resize()

addParentNamespaces

public void addParentNamespaces(List nsDecls)

getAttributeNS

protected AttributeNS getAttributeNS()

writeAttributes

protected void writeAttributes(Attributes attributes,
                               Iterator itr)
                        throws IOException
Throws:
IOException

writeAttributesNS

protected void writeAttributesNS(Iterator itr)
                          throws IOException
Throws:
IOException

namespaceIsRelative

public static boolean namespaceIsRelative(String namespaceValue)
Method namespaceIsRelative

Parameters:
namespaceValue -
Returns:
true if the given namespace is relative.

namespaceIsAbsolute

public static boolean namespaceIsAbsolute(String namespaceValue)
Method namespaceIsAbsolute

Parameters:
namespaceValue -
Returns:
true if the given namespace is absolute.

sort

public static void sort(List list)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.