org.apache.commons.collections
Class TransformIterator

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

Deprecated. this class has been moved to the iterators subpackage

public class TransformIterator
extends TransformIterator

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

Since:
1.0
Author:
James Strachan

Constructor Summary
TransformIterator()
          Deprecated. Constructs a new TransformIterator that will not function until the setIterator method is invoked.
TransformIterator(java.util.Iterator iterator)
          Deprecated. Constructs a new TransformIterator that won't transform elements from the given iterator.
TransformIterator(java.util.Iterator iterator, Transformer transformer)
          Deprecated. Constructs a new TransformIterator that will use the given iterator and transformer.
 
Methods inherited from class org.apache.commons.collections.iterators.TransformIterator
getTransformer, next, setTransformer
 
Methods inherited from class org.apache.commons.collections.iterators.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()
Deprecated. 
Constructs a new TransformIterator that will not function until the setIterator method is invoked.


TransformIterator

public TransformIterator(java.util.Iterator iterator)
Deprecated. 
Constructs a new TransformIterator that won't transform elements from the given iterator.

Parameters:
iterator - the iterator to use

TransformIterator

public TransformIterator(java.util.Iterator iterator,
                         Transformer transformer)
Deprecated. 
Constructs a new TransformIterator that will use the given iterator and transformer. If the given transformer is null, then objects will not be transformed.

Parameters:
iterator - the iterator to use
transformer - the transformer to use


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.