com.phoenixst.collections

Class LoggingIterator

public class LoggingIterator extends Object implements Iterator

An Iterator which wraps another to provide logging support.

Since: 1.0

Version: $Revision: 1.9 $

Author: Ray A. Conner

Constructor Summary
LoggingIterator(Iterator delegate)
Creates a new LoggingIterator which logs to a category corresponding to this class at the DEBUG level.
LoggingIterator(Iterator delegate, Logger logger)
Creates a new LoggingIterator which uses the specified log at the DEBUG level.
LoggingIterator(Iterator delegate, Logger logger, Level level)
Creates a new LoggingIterator.
Method Summary
protected IteratorgetDelegate()
Provides access to internal state so it can be used by extensions of this class.
protected LevelgetLevel()
Provides access to internal state so it can be used by extensions of this class.
protected LoggergetLogger()
Provides access to internal state so it can be used by extensions of this class.
booleanhasNext()
Objectnext()
voidremove()

Constructor Detail

LoggingIterator

public LoggingIterator(Iterator delegate)
Creates a new LoggingIterator which logs to a category corresponding to this class at the DEBUG level.

LoggingIterator

public LoggingIterator(Iterator delegate, Logger logger)
Creates a new LoggingIterator which uses the specified log at the DEBUG level.

LoggingIterator

public LoggingIterator(Iterator delegate, Logger logger, Level level)
Creates a new LoggingIterator.

Method Detail

getDelegate

protected final Iterator getDelegate()
Provides access to internal state so it can be used by extensions of this class.

getLevel

protected final Level getLevel()
Provides access to internal state so it can be used by extensions of this class.

getLogger

protected final Logger getLogger()
Provides access to internal state so it can be used by extensions of this class.

hasNext

public boolean hasNext()

next

public Object next()

remove

public void remove()
See the Plexus project home, hosted by SourceForge.
Copyright B) 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.