Ejemplo n.º 1
0
 /**
  * Writes the stack trace of exceptions encountered by the {@link DataSubscriber} to the error
  * stream.
  */
 @Override
 public void exceptionEncountered(MessageEvent evt) {
   if (m_errorStream != null) {
     evt.getException().printStackTrace(m_errorStream);
     m_errorStream.println();
   }
 }
Ejemplo n.º 2
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();
   }
 }
Ejemplo n.º 3
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();
 }