jni bindings: add local file API