コード例 #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();
 }