org.apache.xpath.axes
Class IteratorPool
java.lang.Object
org.apache.xpath.axes.IteratorPool
- java.io.Serializable
public class IteratorPool
extends java.lang.Object
implements java.io.Serializable
Pool of object of a given type to pick from to help memory usage
- Serialized Form
IteratorPool
public IteratorPool(DTMIterator original)
Constructor IteratorPool
original
- The original iterator from which all others will be cloned.
freeInstance
public void freeInstance(DTMIterator obj)
Add an instance of the given object to the pool
obj
- Object to add.
getInstance
public DTMIterator getInstance()
Get an instance of the given object in this pool
- An instance of the given object
getInstanceOrThrow
public DTMIterator getInstanceOrThrow()
throws CloneNotSupportedException
Get an instance of the given object in this pool
- An instance of the given object
Copyright B) 2004 Apache XML Project. All Rights Reserved.