- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static classBaseCanonicalizer.NamespaceContextImpl
-
Field Summary
Fields Modifier and Type Field Description protected List_attrResultprotected ArrayList_attrsprotected ArrayList_nsAttrsprotected List_nsResultprotected static intinitalCacheSize
-
Constructor Summary
Constructors Constructor Description BaseCanonicalizer()Creates a new instance of BaseCanonicalizer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParentNamespaces(List nsDecls)protected AttributeNSgetAttributeNS()OutputStreamgetOutputStream()static booleannamespaceIsAbsolute(String namespaceValue)Method namespaceIsAbsolutestatic booleannamespaceIsRelative(String namespaceValue)Method namespaceIsRelativevoidreset()protected voidresize()voidsetStream(OutputStream os)static voidsort(List list)protected voidwriteAttributes(Attributes attributes, Iterator itr)protected voidwriteAttributesNS(Iterator itr)
-
-
-
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
-
-
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)
-
-