Package aimax.osm.data.impl

Examples of aimax.osm.data.impl.DefaultMapBuilder


 
  /** Reads a map from the specified stream and stores it in {@link #map}. */
  public void readMap(InputStream stream) {
    if (stream != null) {
      MapReader mapReader = new Bz2OsmReader();
      MapBuilder mapBuilder = new DefaultMapBuilder();
      mapReader.readMap(stream, mapBuilder);
      map = new MapAdapter(mapBuilder.buildMap());
    }
    else
      LOG.warning("Map reading failed because input stream does not exist.");
  }
View Full Code Here


  }
 
  /** Reads a map from the specified file and stores it in {@link #map}. */
  public void readMap(File file) {
    MapReader mapReader = new Bz2OsmReader();
    MapBuilder mapBuilder = new DefaultMapBuilder();
    mapReader.readMap(file, mapBuilder);
    map = new MapAdapter(mapBuilder.buildMap());
  }
View Full Code Here

TOP

Related Classes of aimax.osm.data.impl.DefaultMapBuilder

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.