Reading graph data from jar (input stream)

currently I am using setDataReaderFile(osmFile) to pass the map to my graphhopper instance. I would like to ship the map in my routing library but then the map looses its path and I would have to pass an input stream to the data reader. Is that possible?