org.entityfs.util
Class AbstractIteratorUtil

java.lang.Object
  extended by org.entityfs.util.AbstractIteratorUtil
Direct Known Subclasses:
AbstractZipCreator, IteratorCopier, IteratorDeleter

public abstract class AbstractIteratorUtil
extends Object

This is an abstract base class for the iterator utility classes.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
entityfs-util

Constructor Summary
protected AbstractIteratorUtil(ErrorHandlingStrategy ehs)
           
 
Method Summary
protected  void letErrorStrategyHandle(Exception e, EntityView ev)
          Let the error strategy handle an Exception.
protected  void letErrorStrategyHandle(FileSystemException e, EntityView ev)
          Let the error strategy handle a FileSystemException.
protected  void letErrorStrategyHandle(RuntimeException e, EntityView ev)
          Let the error strategy handle a RuntimeException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIteratorUtil

protected AbstractIteratorUtil(ErrorHandlingStrategy ehs)
Parameters:
ehs - Error handling strategy. May be null which means that exceptions will be thrown once they're caught.
Method Detail

letErrorStrategyHandle

protected void letErrorStrategyHandle(FileSystemException e,
                                      EntityView ev)
Let the error strategy handle a FileSystemException.

Parameters:
e - The exception
ev - The entity whose file system's log adapter should be used for logging

letErrorStrategyHandle

protected void letErrorStrategyHandle(RuntimeException e,
                                      EntityView ev)
Let the error strategy handle a RuntimeException.

Parameters:
e - The exception
ev - The entity whose file system's log adapter should be used for logging

letErrorStrategyHandle

protected void letErrorStrategyHandle(Exception e,
                                      EntityView ev)
Let the error strategy handle an Exception.

Parameters:
e - The exception
ev - The entity whose file system's log adapter should be used for logging