Load Graphhopper Data as a Resource Stream

Graphhopper Version 1.0

I am using Graphhopper as part of my own routing library which includes the data in the graphHopperFolder. When my library is imported it will create a Graphhopper instance. I would like to pass it the data as a Input Stream because in this way I can load the data as a resource:

InputStream graphHopperDataStream = getClass().getClassLoader().getResourceAsStream("...")

Is there a way to instead of calling

public boolean load(String graphHopperFolder)

pack all the data in the graphHopperFolder into a File that I can ship as a resource and then load that reasourcce as a stream?

Powered by Discourse