Examples of parseData()


Examples of net.sf.myway.gps.garmin.parser.DataType.parseData()

            GarminHelper.ubyte(data[i + 1]) + (data[i + 2] << 8)));
        _usb.close();
      }
      if (response.getPacketType() == 20 && response.getPacketId() == 149) {
        final DataType dataType = DataType.get("D1001");
        System.out.println(dataType.parseData(new GarminData(response.getData())));
      }
      if (response.getPacketType() == 20 && response.getPacketId() == 12) {
        System.out.println("transmission terminated");
        _usb.close();
      }
View Full Code Here

Examples of net.sf.myway.gps.garmin.unit.GarminObject.parseData()

  }

  public Object parseData(final GarminData data) {
    try {
      final GarminObject obj = (GarminObject) _class.newInstance();
      obj.parseData(data);
      return obj;
    }
    catch (final InstantiationException ex) {
      _log.error(ex);
    }
View Full Code Here

Examples of org.gbcpainter.loaders.level.parsers.AssertValidGraphParser.parseData()

    ByteBuffer buffer = ByteBuffer.wrap( Files.readAllBytes( path ) );

    setStatus( PARSE_DATA );
    FileLevelParser parser = new AssertValidGraphParser();

    parser.parseData( buffer );
    SimpleGraph<Point, Segment> levelMap = parser.getLevelMap();
    Map<Integer, Set<Segment>> rawFacesMap = parser.getFacesMap();
    Point initialPlayerPosition = parser.getPlayerPosition();
    Map<String, java.util.List<Point>> monstersPositions = parser.getMonstersPosition();
View Full Code Here

Examples of org.gbcpainter.loaders.level.parsers.AssertValidGraphParser.parseData()

    Path path = Paths.get( levelFile.getAbsolutePath() );

    ByteBuffer buffer = ByteBuffer.wrap( Files.readAllBytes( path ) );

    parser.parseData( buffer );

    this.levelMap = parser.getLevelMap();
    this.rawFacesMap = parser.getFacesMap();
    this.playerPosition = parser.getPlayerPosition();
    this.monstersPositions = parser.getMonstersPosition();
View Full Code Here

Examples of org.gbcpainter.loaders.level.parsers.FileLevelParser.parseData()

    ByteBuffer buffer = ByteBuffer.wrap( Files.readAllBytes( path ) );

    setStatus( PARSE_DATA );
    FileLevelParser parser = new AssertValidGraphParser();

    parser.parseData( buffer );
    SimpleGraph<Point, Segment> levelMap = parser.getLevelMap();
    Map<Integer, Set<Segment>> rawFacesMap = parser.getFacesMap();
    Point initialPlayerPosition = parser.getPlayerPosition();
    Map<String, java.util.List<Point>> monstersPositions = parser.getMonstersPosition();
View Full Code Here

Examples of org.gbcpainter.loaders.level.parsers.FileLevelParser.parseData()

    Path path = Paths.get( levelFile.getAbsolutePath() );

    ByteBuffer buffer = ByteBuffer.wrap( Files.readAllBytes( path ) );

    parser.parseData( buffer );

    this.levelMap = parser.getLevelMap();
    this.rawFacesMap = parser.getFacesMap();
    this.playerPosition = parser.getPlayerPosition();
    this.monstersPositions = parser.getMonstersPosition();
View Full Code Here

Examples of org.jampa.model.podcasts.Podcast.parseData()

 
  public void addPodcast(String name, String url) {
    Podcast podcast = new Podcast(name, "", url, "");
    podcast.setPosition(_podcastItems.size());
    podcast.download();
    podcast.parseData();
    _podcastItems.put(podcast.getName(), podcast);
   
    Controller.getInstance().getEventController().firePlaylistChange(EventConstants.EVT_ADD_PLAYLIST, null, name);
  }
 
View Full Code Here

Examples of org.jampa.model.podcasts.Podcast.parseData()

     
      downloader = new PodcastUpdater(podcast.getUrl());
      if (downloader.download()) {
        podcast.setData(downloader.getData());
        Log.getInstance(PodcastUpdaterJob.class).debug("Parsing data for podcast: " + podcast.getName());
        _newItemsCount += podcast.parseData();
       
        Controller.getInstance().getEventController().fireAudioItemChange(EventConstants.EVT_ITEM_CHANGE_IN_PLAYLIST, null, null);
      }
      monitor.worked(1);
    }
View Full Code Here

Examples of org.zkoss.idom.ProcessingInstruction.parseData()

      final ProcessingInstruction pi = (ProcessingInstruction)o;
      final String target = pi.getTarget();
      if ("page".equals(target)) {
        //we handle only the language attribute here
        final Map params = pi.parseData();
        final String l = (String)params.remove("language");
        if (l != null) {
          noEL("language", l, pi);
          lang = l;
        }
View Full Code Here

Examples of org.zkoss.idom.ProcessingInstruction.parseData()

      if (!(o instanceof ProcessingInstruction))
        continue;

      final ProcessingInstruction pi = (ProcessingInstruction)o;
      final String target = pi.getTarget();
      final Map params = pi.parseData();
      if ("taglib".equals(target)) {
        final String uri = (String)params.remove("uri");
        final String prefix = (String)params.remove("prefix");
        if (!params.isEmpty())
          log.warning("Ignored unknown attribute: "+params+", "+pi.getLocator());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.