QNameCache Class

com.bea.xml
QNameCache Class

public final class QNameCache

    extends Object

A cache that can be used to pool QName instances. Each thread has one.


Hierarchy
Object
  QNameCache

Constructor Summary

QNameCache(int initialCapacity, float loadFactor)

Creates a QNameCache with the given initialCapacity and loadFactor.
QNameCache(int initialCapacity)

Creates a QNameCache with the given initialCapacity.
 

Method Summary

public QName
getName(String uri, String localName)
Fetches a QName with the given namespace and localname.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Constructor Detail

QNameCache

public QNameCache(int initialCapacity, 
                  float loadFactor)
Creates a QNameCache with the given initialCapacity and loadFactor.

QNameCache

public QNameCache(int initialCapacity)
Creates a QNameCache with the given initialCapacity.
 

Method Detail

getName(String, String) Method

public QName getName(String uri, 
                     String localName)
Fetches a QName with the given namespace and localname. Creates one if one is not found in the cache.

Parameters

uri
the namespace
localName
the localname

Returns

the cached QName