Class PbfReader

java.lang.Object
com.graphhopper.reader.osm.pbf.PbfReader
All Implemented Interfaces:
Runnable

public class PbfReader extends Object implements Runnable
An OSM data source reading from a PBF file. The entire contents of the file are read.

Author:
Brett Henderson
  • Constructor Details

    • PbfReader

      public PbfReader(InputStream in, Sink sink, int workers, SkipOptions skipOptions)
      Creates a new instance.

      Parameters:
      in - The file to read.
      workers - The number of worker threads for decoding PBF blocks.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • close

      public void close()