com.im.commons.progress
Class ProgressWriterFeedbackAdapter
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 messagescomposer - Allows a custom message to be composed. Can be null in which
case the normal message is usedlogThrowable - Whether to log the Throwable to the log fileslevel - Which level to log the Throwable.
addMessage
public void addMessage(int level,
String msg,
Throwable t)
- Specified by:
addMessage in interface ProgressWriter.Logger