Initial ground work for range support on the java side (going to mimick RDServices API). Add experimental approach of getting all resource bytes in the JNI layer.