All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.graphhopper.reader.osm.pbf.PbfRawBlob Maven / Gradle / Ivy

Go to download

GraphHopper is a fast and memory efficient Java road routing engine working seamlessly with OpenStreetMap data.

There is a newer version: 10.0
Show newest version
// This software is released into the Public Domain.  See copying.txt for details.
package com.graphhopper.reader.osm.pbf;

/**
 * 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 */ public class PbfRawBlob { private String type; private byte[] data; /** * Creates a new instance. *

* * @param type The type of data represented by this blob. This corresponds to the type field in * the blob header. * @param data The raw contents of the blob in binary undecoded form. */ public PbfRawBlob(String type, byte[] data) { this.type = type; this.data = data; } /** * Gets the type of data represented by this blob. This corresponds to the type field in the * blob header. *

* * @return The blob type. */ public String getType() { return type; } /** * Gets the raw contents of the blob in binary undecoded form. *

* * @return The raw blob data. */ public byte[] getData() { return data; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy