Package org.openstreetmap.osmosis.pbf2.v0_6.impl

Examples of org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfDecoder.run()


      // than there are workers to ensure there is another blob
      // immediately ready for processing when a worker thread completes.
      // The main thread is responsible for splitting blobs from the
      // request stream, and sending decoded entities to the sink.
      PbfDecoder pbfDecoder = new PbfDecoder(streamSplitter, executorService, workers + 1, sink);
      pbfDecoder.run();

      sink.complete();

    } catch (IOException e) {
      throw new OsmosisRuntimeException("Unable to read PBF file " + file + ".", e);
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.