Class PbfBlobDecoder

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

public class PbfBlobDecoder extends Object implements Runnable
Converts PBF block data into decoded entities ready to be passed into an Osmosis pipeline. This class is designed to be passed into a pool of worker threads to allow multi-threaded decoding.

Author:
Brett Henderson
  • Constructor Details

    • PbfBlobDecoder

      public PbfBlobDecoder(String blobType, byte[] rawBlob, PbfBlobDecoderListener listener, SkipOptions skipOptions)
      Creates a new instance.

      Parameters:
      blobType - The type of blob.
      rawBlob - The raw data of the blob.
      listener - The listener for receiving decoding results.
  • Method Details

    • run

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