From 13a822dbe81f8fdc8186e97ee75849e7de3305b9 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Tue, 7 May 2002 16:31:44 +0000 Subject: [PATCH] Reformatted git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@194799 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/messaging/MessageHandler.java | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/org/apache/fop/messaging/MessageHandler.java b/src/org/apache/fop/messaging/MessageHandler.java index e6ca11828..6faaf15bb 100644 --- a/src/org/apache/fop/messaging/MessageHandler.java +++ b/src/org/apache/fop/messaging/MessageHandler.java @@ -15,25 +15,28 @@ import java.util.*; * The class MessageHandler contains the static methods log and error which * should be used for any end user information instead of System.out.print() or * System.err.print(). The class defines several output methods: - * writing to the screen (default), logging to a file, creating message events and repressing all - * output. If you don't want to change the default behaviour, you should be + * writing to the screen (default), logging to a file, creating message events + * and repressing all output. + * If you don't want to change the default behaviour, you should be * happy with MessageHandler.log(message) and MessageHandler.error(message)
- * The class MessageHandler also supports the setting of an id. If set every message - * has as a prefix an identifying string. That way Fop probably can also be used in - * environments, where more than one Fop instance are running in same JVM.
+ * The class MessageHandler also supports the setting of an id. + * If set every message has as a prefix an identifying string. + * That way Fop probably can also be used in + * environments where more than one Fop instance are running in same JVM.
* If Fop is embedded in a gui application or for any reasons the existing * messaging system doesn't meet the programmer's requirements, one can add * a MessageEvent listener to MessageHandler and handle the incoming messages - * in an appropriate way. See the class DefaultMessageListener, which is a trivial - * implementation of the MessageListener. - * Here is an example how to configure MessageHandler for the DefaultMessageListener (anybody + * in an appropriate way. See the class DefaultMessageListener, which is a + * trivial implementation of the MessageListener. + * Here is an example how to configure MessageHandler for the + * DefaultMessageListener (anybody * can provide his own listener by extending MessageListener
* * MessageHandler.setOutputMethod(MessageHandler.EVENT); * MessageHandler.addListener(new DefaultMessageListener()); *
- * This examples shows, how to redirect the messages to a log file called fop.log. - * All messages are appended to this file. + * This examples shows how to redirect the messages to a log file called + * fop.log. All messages are appended to this file. * * MessageHandler.setOutputMethod(MessageHandler.FILE); * MessageHandler.setLogfileName("\\fop.log",true); @@ -104,7 +107,9 @@ public class MessageHandler { setMessage(message); Enumeration enum = listeners.elements(); while (enum.hasMoreElements()) { - ((MessageListener)enum.nextElement()).processMessage(new MessageEvent(getMessage())); + ((MessageListener)enum.nextElement()).processMessage( + new MessageEvent(getMessage()) + ); } break; case NONE: -- 2.39.5