jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.io
Class MoleculeCallbacks

Object
  extended by com.chemaxon.overlap.io.MoleculeCallbacks

public final class MoleculeCallbacks
extends Object

MoleculeCallback related utilities.

Author:
Gabor Imre

Nested Class Summary
static interface MoleculeCallbacks.CountingMoleculeCallback
          Error counting callback.
static class MoleculeCallbacks.IndexToNameStoringCallback
          A callback storing indexes.
 
Method Summary
static MoleculeCallbacks.CountingMoleculeCallback countingCallback()
          Counting callback.
static MoleculeCallbacks.CountingMoleculeCallback errorLoggingCallback(org.apache.commons.logging.Log log)
          Error logging callback.
static MoleculeCallbacks.CountingMoleculeCallback errorVerbosingCallback()
          Error verbosing callback.
static MoleculeCallback nullCallback()
          Null callback.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nullCallback

public static MoleculeCallback nullCallback()
Null callback.

Returns:
A Callback doing nothing.

countingCallback

public static MoleculeCallbacks.CountingMoleculeCallback countingCallback()
Counting callback.

Returns:
A counting callback with meaningful toString()

errorLoggingCallback

public static MoleculeCallbacks.CountingMoleculeCallback errorLoggingCallback(org.apache.commons.logging.Log log)
Error logging callback.

Parameters:
log - Logger to use
Returns:
A counting callback logging errors on a Log

errorVerbosingCallback

public static MoleculeCallbacks.CountingMoleculeCallback errorVerbosingCallback()
Error verbosing callback.

Returns:
A counting callback printing errors on stderr.

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)