예제 #1
0
 public Reader newConnectionReader(Reader newReader) {
   ((ObservableReader) reader).removeReaderListener(readerListener);
   ObservableReader debugReader = new ObservableReader(newReader);
   debugReader.addReaderListener(readerListener);
   reader = debugReader;
   return reader;
 }
예제 #2
0
 /**
  * Notification that the root window is closing. Stop listening for received and transmitted
  * packets.
  *
  * @param evt the event that indicates that the root window is closing
  */
 public void rootWindowClosing(WindowEvent evt) {
   connection.removePacketListener(listener);
   ((ObservableReader) reader).removeReaderListener(readerListener);
   ((ObservableWriter) writer).removeWriterListener(writerListener);
 }