Class PbfRawBlob

java.lang.Object
com.graphhopper.reader.osm.pbf.PbfRawBlob

public class PbfRawBlob extends Object
Represents a single piece of raw blob data extracted from the PBF stream. It has not yet been decoded into a PBF blob object.

Author:
Brett Henderson
  • Constructor Details

    • PbfRawBlob

      public PbfRawBlob(String type, byte[] data)
      Creates a new instance.

      Parameters:
      type - The type of data represented by this blob. This corresponds to the type field in the blob header.
      data - The raw contents of the blob in binary undecoded form.
  • Method Details

    • getType

      public String getType()
      Gets the type of data represented by this blob. This corresponds to the type field in the blob header.

      Returns:
      The blob type.
    • getData

      public byte[] getData()
      Gets the raw contents of the blob in binary undecoded form.

      Returns:
      The raw blob data.