예제 #1
0
 /**
  * Writes the message received when the {@link DataSubscriber}'s connection is terminated to the
  * error stream.
  */
 @Override
 public void connectionTerminated(MessageEvent evt) {
   if (m_errorStream != null) {
     m_errorStream.println(evt.getMessage());
     m_errorStream.println();
   }
 }
예제 #2
0
 /** Writes status messages from the {@link DataSubscriber} to the output stream. */
 @Override
 public void statusMessageReceived(MessageEvent evt) {
   m_outputStream.println(evt.getMessage());
   m_outputStream.println();
 }