com.im.commons 5.9

com.im.commons.progress
Class ProgressWriterFeedbackAdapter

java.lang.Object
  extended by com.im.commons.progress.ProgressWriterFeedbackAdapter
All Implemented Interfaces:
ProgressWriter.Logger

public class ProgressWriterFeedbackAdapter
extends Object
implements ProgressWriter.Logger

Adapter class that can be used as a chemaxon.jchem.file.ProgressWriter.Logger, writing its output to the specified DFFeedback instance.


Nested Class Summary
static interface ProgressWriterFeedbackAdapter.MessageComposer
           
 
Constructor Summary
ProgressWriterFeedbackAdapter(DFFeedback feedback)
           
ProgressWriterFeedbackAdapter(DFFeedback feedback, ProgressWriterFeedbackAdapter.MessageComposer composer, boolean logThrowable, Level level)
           
 
Method Summary
 void addMessage(int level, String msg, Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressWriterFeedbackAdapter

public ProgressWriterFeedbackAdapter(DFFeedback feedback)

ProgressWriterFeedbackAdapter

public ProgressWriterFeedbackAdapter(DFFeedback feedback,
                                     ProgressWriterFeedbackAdapter.MessageComposer composer,
                                     boolean logThrowable,
                                     Level level)
Parameters:
feedback - The DFFeedback that will receive the messages
composer - Allows a custom message to be composed. Can be null in which case the normal message is used
logThrowable - Whether to log the Throwable to the log files
level - Which level to log the Throwable.
Method Detail

addMessage

public void addMessage(int level,
                       String msg,
                       Throwable t)
Specified by:
addMessage in interface ProgressWriter.Logger

com.im.commons 5.9