com.bluecast.xml
Class FastNamespaceSupport
public
class
FastNamespaceSupport
extends Object
This class improves performance over NamespaceSupport by
assuming that most XML documents have very few namespaces. Therefore,
instead of performing expensive copying operations of hash tables,
arrays and linear searches are used instead.
NOTE: This class is not a drop-in replacement for NamespaceSupport. This
class assumes that passed URIs are already internalized! Also, getURI()
returns "" instead of null if a prefix is not found.
Version: $Revision: 1.5 $
Author: Yuval Oren
public static final String XMLNS
public FastNamespaceSupport()
public void declarePrefix(String prefix, String uri)
public String getContextPrefix(int index)
public int getContextSize()
public String getContextURI(int index)
public String getDefaultURI()
public String getURI(String prefix)
public void popContext()
public String[] processName(String qName, String[] parts, boolean isAttribute)
public void pushContext()
public void reset()