Package net.sf.myway.gps.garmin.unit

Examples of net.sf.myway.gps.garmin.unit.MessageListener


  public GarminSerialDownloadHandler(final ProtocolListener unit, final ProtocolFinder finder,
    final InputStream gpsInputStream, final SerialPort serialPort) {
    try {
      _reader = new SerialMessageReader(gpsInputStream);
      serialPort.addEventListener(_reader);
      _reader.addMessageListener(new MessageListener() {
        @Override
        public void messageReceived(final GarminMessage m) {
          _log.info("received " + m);
          if (_currentProtocol == null)
            _currentProtocol = finder.findProtocol(m);
View Full Code Here


   * @param f
   */
  public GarminUSBDownloadHandler(final USB usb, final ProtocolListener l,
    final ProtocolFinder finder, final GarminUSBUploadHandler upload) {
    _reader = new USBMessageReader(usb);
    _reader.addMessageListener(new MessageListener() {
      @Override
      public void messageReceived(final GarminMessage m) {
        _log.info("received " + m);
        if (_currentProtocol == null)
          _currentProtocol = finder.findProtocol(m);
View Full Code Here

TOP

Related Classes of net.sf.myway.gps.garmin.unit.MessageListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.