in src/main/java/com/uber/h3core/H3CoreLoader.java [67:79]
static void copyResource(String resourcePath, File newH3LibFile) throws IOException {
// Shove the resource into the file and close it
try (InputStream resource = H3CoreLoader.class.getResourceAsStream(resourcePath)) {
if (resource == null) {
throw new UnsatisfiedLinkError(
String.format("No native resource found at %s", resourcePath));
}
try (FileOutputStream outFile = new FileOutputStream(newH3LibFile)) {
copyStream(resource, outFile);
}
}
}