Package de.hpi.eworld.util

Examples of de.hpi.eworld.util.ProgressMonitorStream


   * @throws IOException
   */
  public boolean parseFile( InputStream stream ) throws IOException {
   
    edgeProps = new OsmEdgeProps(importPedestrian);
    currentStream = new ProgressMonitorStream( stream );
    osmHandler =  new OsmHandler(importPedestrian, filterCyclicEdges);

    try {
      saxParser.parse( currentStream, osmHandler );
    } catch( SAXException e ) {
View Full Code Here


   * @param length necessary for http stream
   * @throws IOException
   */
  public void parseFile( InputStream stream, int length ) throws IOException {
    try {
      currentStream = new ProgressMonitorStream( stream, length );
      modelManager.clearModel();
      osmHandler =  new OsmHandler(importPedestrian, filterCyclicEdges);
      saxParser.parse( currentStream, osmHandler );
    } catch( SAXException e ) {
      throw new RuntimeException(e);
View Full Code Here

   * @throws InterruptedException
   */
  public void parseFile( URL fileURL, boolean forCurrentMap, boolean automaticImport ) throws IOException, InterruptedException {
   
    try {
      currentStream = new ProgressMonitorStream( fileURL.openStream() );
      agrHandler =  new AggregatedHandler(fileURL, forCurrentMap, automaticImport);
      saxParser.parse( currentStream, agrHandler );
    } catch( AggregatedHandler.ImportInterruptedException ex) {
      //remove new dataset, if it was already added to the manager
      if (agrHandler.wasDatasetAdded())
View Full Code Here

TOP

Related Classes of de.hpi.eworld.util.ProgressMonitorStream

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.