org.apache.xpath.axes

Class IteratorPool

public class IteratorPool extends Object implements Serializable

Pool of object of a given type to pick from to help memory usage

UNKNOWN: internal

Constructor Summary
IteratorPool(DTMIterator original)
Constructor IteratorPool
Method Summary
voidfreeInstance(DTMIterator obj)
Add an instance of the given object to the pool
DTMIteratorgetInstance()
Get an instance of the given object in this pool
DTMIteratorgetInstanceOrThrow()
Get an instance of the given object in this pool

Constructor Detail

IteratorPool

public IteratorPool(DTMIterator original)
Constructor IteratorPool

Parameters: original The original iterator from which all others will be cloned.

Method Detail

freeInstance

public void freeInstance(DTMIterator obj)
Add an instance of the given object to the pool

Parameters: obj Object to add.

getInstance

public DTMIterator getInstance()
Get an instance of the given object in this pool

Returns: An instance of the given object

getInstanceOrThrow

public DTMIterator getInstanceOrThrow()
Get an instance of the given object in this pool

Returns: An instance of the given object

Copyright © 2005 Apache XML Project. All Rights Reserved.