org.apache.commons.collections
Class TransformIterator

java.lang.Object
  |
  +--org.apache.commons.collections.ProxyIterator
        |
        +--org.apache.commons.collections.TransformIterator
All Implemented Interfaces:
Iterator

public class TransformIterator
extends ProxyIterator

A Proxy Iterator which uses a Transformer instance to transform the contents of the Iterator into some other form

Author:
James Strachan

Constructor Summary
TransformIterator()
           
TransformIterator(Iterator iterator)
           
TransformIterator(Iterator iterator, Transformer transformer)
           
 
Method Summary
 Transformer getTransformer()
          Getter for property transformer.
 Object next()
           
 void setTransformer(Transformer transformer)
          Setter for property transformer.
 
Methods inherited from class org.apache.commons.collections.ProxyIterator
getIterator, hasNext, remove, setIterator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformIterator

public TransformIterator()

TransformIterator

public TransformIterator(Iterator iterator)

TransformIterator

public TransformIterator(Iterator iterator,
                         Transformer transformer)
Method Detail

getTransformer

public Transformer getTransformer()
Getter for property transformer.
Returns:
Value of property transformer.

next

public Object next()
Overrides:
next in class ProxyIterator

setTransformer

public void setTransformer(Transformer transformer)
Setter for property transformer.
Parameters:
transformer - New value of property transformer.


Copyright © 2001 Apache Software Foundation. Documenation generated July 14 2001.