public void addListener(AbstractSerialTransportListener listener){
  if (listener != null) {
    listeners.add(listener);
  }
}

public void addListener ( AbstractSerialTransportListener listener ) { if ( listener != null ) { listeners . add ( listener ) ; } }
adds a listener to the transport to be called when an event occurs
