DefaultMessageListener
- java.lang.Object
-
- com.dashoptimization.AbstractMessageListener
-
- com.dashoptimization.DefaultMessageListener
-
- All Implemented Interfaces:
- XPRSmessageListener, java.util.EventListener
public class DefaultMessageListener extends AbstractMessageListener
Implementation ofAbstractMessageListenerthat directs all messages to output streams. The class can direct messages to instances ofPrintStream. The default constructor redirects to the console.
-
-
Constructor Summary
Constructor and Description DefaultMessageListener()Create a message listener that prints to the console.DefaultMessageListener(java.io.PrintStream infoStream, java.io.PrintStream warningStream, java.io.PrintStream errorStream)Create a message listener that directs messages to the specified streams.
-
Method Summary
-
Methods inherited from class com.dashoptimization.AbstractMessageListener
XPRSmessageEvent
-
-
-
-
Constructor Detail
-
DefaultMessageListener
public DefaultMessageListener()
Create a message listener that prints to the console. Info and warning message will go toSystem.out, error messages will go toSystem.err.
-
DefaultMessageListener
public DefaultMessageListener(java.io.PrintStream infoStream, java.io.PrintStream warningStream, java.io.PrintStream errorStream)Create a message listener that directs messages to the specified streams. Any of the streams may benullin which case the respective messages will be swallowed.- Parameters:
-
infoStream- Output stream for info messages. -
warningStream- Output stream for warning messages. -
errorStream- Output stream for error messages.
-
-
© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
