diff options
author | Sven Gothel <[email protected]> | 2022-07-07 03:57:58 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-07-07 03:57:58 +0200 |
commit | 447dd8d5285ce8206bdd2189a1ef704a3a994d7f (patch) | |
tree | 62e9834cd1c9020341f1fd30b3ba50a95e005af3 /java_jni/jni/jau | |
parent | f98edced4f8f7762bfcb3184b568559668d96bea (diff) |
Java: Move 'org.jau.nio' content -> 'org.jau.io' and 'org.jau.nio.Uri' -> ''org.jau.nio.UriTk'; C++: 'jau::io::uri' -> 'jau::io::uri_tk'
Diffstat (limited to 'java_jni/jni/jau')
-rw-r--r-- | java_jni/jni/jau/ByteInStream_Feed.cxx | 42 | ||||
-rw-r--r-- | java_jni/jni/jau/ByteInStream_File.cxx | 32 | ||||
-rw-r--r-- | java_jni/jni/jau/ByteInStream_URL.cxx | 32 | ||||
-rw-r--r-- | java_jni/jni/jau/jau_io_UriTk.cxx (renamed from java_jni/jni/jau/jau_nio_uri.cxx) | 18 |
4 files changed, 62 insertions, 62 deletions
diff --git a/java_jni/jni/jau/ByteInStream_Feed.cxx b/java_jni/jni/jau/ByteInStream_Feed.cxx index 68ddc7c..0d69ca7 100644 --- a/java_jni/jni/jau/ByteInStream_Feed.cxx +++ b/java_jni/jni/jau/ByteInStream_Feed.cxx @@ -22,7 +22,7 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include "org_jau_nio_ByteInStream_Feed.h" +#include "org_jau_io_ByteInStream_Feed.h" #include <jau/debug.hpp> @@ -30,7 +30,7 @@ #include "jau/byte_stream.hpp" -jlong Java_org_jau_nio_ByteInStream_1Feed_ctorImpl(JNIEnv *env, jobject obj, jstring jid_name, jlong jtimeoutMS) { +jlong Java_org_jau_io_ByteInStream_1Feed_ctorImpl(JNIEnv *env, jobject obj, jstring jid_name, jlong jtimeoutMS) { try { (void)obj; // new instance @@ -44,7 +44,7 @@ jlong Java_org_jau_nio_ByteInStream_1Feed_ctorImpl(JNIEnv *env, jobject obj, jst return (jlong) (intptr_t)nullptr; } -void Java_org_jau_nio_ByteInStream_1Feed_closeStream(JNIEnv *env, jobject obj) { +void Java_org_jau_io_ByteInStream_1Feed_closeStream(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done ref->close(); @@ -53,7 +53,7 @@ void Java_org_jau_nio_ByteInStream_1Feed_closeStream(JNIEnv *env, jobject obj) { } } -void Java_org_jau_nio_ByteInStream_1Feed_dtorImpl(JNIEnv *env, jclass clazz, jlong nativeInstance) { +void Java_org_jau_io_ByteInStream_1Feed_dtorImpl(JNIEnv *env, jclass clazz, jlong nativeInstance) { (void)clazz; try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> sref(nativeInstance, false /* throw_on_nullptr */); // hold copy until done @@ -66,7 +66,7 @@ void Java_org_jau_nio_ByteInStream_1Feed_dtorImpl(JNIEnv *env, jclass clazz, jlo } } -jboolean Java_org_jau_nio_ByteInStream_1Feed_check_1available(JNIEnv *env, jobject obj, jlong n) { +jboolean Java_org_jau_io_ByteInStream_1Feed_check_1available(JNIEnv *env, jobject obj, jlong n) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done return ref->check_available((size_t)n) ? JNI_TRUE : JNI_FALSE; @@ -76,7 +76,7 @@ jboolean Java_org_jau_nio_ByteInStream_1Feed_check_1available(JNIEnv *env, jobje return JNI_FALSE; } -jint Java_org_jau_nio_ByteInStream_1Feed_read(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength) { +jint Java_org_jau_io_ByteInStream_1Feed_read(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done @@ -99,7 +99,7 @@ jint Java_org_jau_nio_ByteInStream_1Feed_read(JNIEnv *env, jobject obj, jbyteArr return 0; } -jint Java_org_jau_nio_ByteInStream_1Feed_read2Impl(JNIEnv *env, jobject obj, jobject jout, jint out_offset) { +jint Java_org_jau_io_ByteInStream_1Feed_read2Impl(JNIEnv *env, jobject obj, jobject jout, jint out_offset) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done @@ -118,7 +118,7 @@ jint Java_org_jau_nio_ByteInStream_1Feed_read2Impl(JNIEnv *env, jobject obj, job return 0; } -jint Java_org_jau_nio_ByteInStream_1Feed_peek(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength, jlong jpeek_offset) { +jint Java_org_jau_io_ByteInStream_1Feed_peek(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength, jlong jpeek_offset) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done @@ -142,7 +142,7 @@ jint Java_org_jau_nio_ByteInStream_1Feed_peek(JNIEnv *env, jobject obj, jbyteArr return 0; } -jboolean Java_org_jau_nio_ByteInStream_1Feed_end_1of_1data(JNIEnv *env, jobject obj) { +jboolean Java_org_jau_io_ByteInStream_1Feed_end_1of_1data(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done return ref->end_of_data() ? JNI_TRUE : JNI_FALSE; @@ -152,7 +152,7 @@ jboolean Java_org_jau_nio_ByteInStream_1Feed_end_1of_1data(JNIEnv *env, jobject return JNI_TRUE; } -jboolean Java_org_jau_nio_ByteInStream_1Feed_error(JNIEnv *env, jobject obj) { +jboolean Java_org_jau_io_ByteInStream_1Feed_error(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done return ref->error() ? JNI_TRUE : JNI_FALSE; @@ -162,7 +162,7 @@ jboolean Java_org_jau_nio_ByteInStream_1Feed_error(JNIEnv *env, jobject obj) { return JNI_TRUE; } -jstring Java_org_jau_nio_ByteInStream_1Feed_id(JNIEnv *env, jobject obj) { +jstring Java_org_jau_io_ByteInStream_1Feed_id(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done return jau::jni::from_string_to_jstring(env, ref->id()); @@ -172,7 +172,7 @@ jstring Java_org_jau_nio_ByteInStream_1Feed_id(JNIEnv *env, jobject obj) { return nullptr; } -jlong Java_org_jau_nio_ByteInStream_1Feed_discard_1next(JNIEnv *env, jobject obj, jlong n) { +jlong Java_org_jau_io_ByteInStream_1Feed_discard_1next(JNIEnv *env, jobject obj, jlong n) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done @@ -184,7 +184,7 @@ jlong Java_org_jau_nio_ByteInStream_1Feed_discard_1next(JNIEnv *env, jobject obj return 0; } -jlong Java_org_jau_nio_ByteInStream_1Feed_get_1bytes_1read(JNIEnv *env, jobject obj) { +jlong Java_org_jau_io_ByteInStream_1Feed_get_1bytes_1read(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done return static_cast<jlong>( ref->get_bytes_read() ); @@ -194,7 +194,7 @@ jlong Java_org_jau_nio_ByteInStream_1Feed_get_1bytes_1read(JNIEnv *env, jobject return 0; } -jboolean Java_org_jau_nio_ByteInStream_1Feed_has_1content_1size(JNIEnv *env, jobject obj) { +jboolean Java_org_jau_io_ByteInStream_1Feed_has_1content_1size(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done return ref->has_content_size() ? JNI_TRUE : JNI_FALSE; @@ -204,7 +204,7 @@ jboolean Java_org_jau_nio_ByteInStream_1Feed_has_1content_1size(JNIEnv *env, job return JNI_FALSE; } -jlong Java_org_jau_nio_ByteInStream_1Feed_content_1size(JNIEnv *env, jobject obj) { +jlong Java_org_jau_io_ByteInStream_1Feed_content_1size(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done return static_cast<jlong>( ref->content_size() ); @@ -214,7 +214,7 @@ jlong Java_org_jau_nio_ByteInStream_1Feed_content_1size(JNIEnv *env, jobject obj return 0; } -void Java_org_jau_nio_ByteInStream_1Feed_interruptReader(JNIEnv *env, jobject obj) { +void Java_org_jau_io_ByteInStream_1Feed_interruptReader(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done ref->interruptReader(); @@ -223,7 +223,7 @@ void Java_org_jau_nio_ByteInStream_1Feed_interruptReader(JNIEnv *env, jobject ob } } -void Java_org_jau_nio_ByteInStream_1Feed_write(JNIEnv *env, jobject obj, jbyteArray jin, jint joffset, jint jlength) { +void Java_org_jau_io_ByteInStream_1Feed_write(JNIEnv *env, jobject obj, jbyteArray jin, jint joffset, jint jlength) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done @@ -245,7 +245,7 @@ void Java_org_jau_nio_ByteInStream_1Feed_write(JNIEnv *env, jobject obj, jbyteAr } } -void Java_org_jau_nio_ByteInStream_1Feed_write2Impl(JNIEnv *env, jobject obj, jobject jout, jint out_offset, jint out_limit) { +void Java_org_jau_io_ByteInStream_1Feed_write2Impl(JNIEnv *env, jobject obj, jobject jout, jint out_offset, jint out_limit) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done @@ -262,7 +262,7 @@ void Java_org_jau_nio_ByteInStream_1Feed_write2Impl(JNIEnv *env, jobject obj, jo } } -void Java_org_jau_nio_ByteInStream_1Feed_set_1content_1size(JNIEnv *env, jobject obj, jlong jcontent_size) { +void Java_org_jau_io_ByteInStream_1Feed_set_1content_1size(JNIEnv *env, jobject obj, jlong jcontent_size) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done ref->set_content_size( static_cast<uint64_t>( jcontent_size ) ); @@ -271,7 +271,7 @@ void Java_org_jau_nio_ByteInStream_1Feed_set_1content_1size(JNIEnv *env, jobject } } -void Java_org_jau_nio_ByteInStream_1Feed_set_1eof(JNIEnv *env, jobject obj, jint jresult) { +void Java_org_jau_io_ByteInStream_1Feed_set_1eof(JNIEnv *env, jobject obj, jint jresult) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj); // hold until done ref->set_eof(static_cast<jau::io::async_io_result_t>(jresult)); @@ -280,7 +280,7 @@ void Java_org_jau_nio_ByteInStream_1Feed_set_1eof(JNIEnv *env, jobject obj, jint } } -jstring Java_org_jau_nio_ByteInStream_1Feed_toString(JNIEnv *env, jobject obj) { +jstring Java_org_jau_io_ByteInStream_1Feed_toString(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_Feed> ref(env, obj, false /* throw_on_nullptr */); // hold until done std::string str = ref.is_null() ? "null" : ref->to_string(); diff --git a/java_jni/jni/jau/ByteInStream_File.cxx b/java_jni/jni/jau/ByteInStream_File.cxx index dd9140b..b506c79 100644 --- a/java_jni/jni/jau/ByteInStream_File.cxx +++ b/java_jni/jni/jau/ByteInStream_File.cxx @@ -22,7 +22,7 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include "org_jau_nio_ByteInStream_File.h" +#include "org_jau_io_ByteInStream_File.h" #include <jau/debug.hpp> @@ -30,7 +30,7 @@ #include "jau/byte_stream.hpp" -jlong Java_org_jau_nio_ByteInStream_1File_ctorImpl(JNIEnv *env, jobject obj, jstring jpath, jboolean juse_binary) { +jlong Java_org_jau_io_ByteInStream_1File_ctorImpl(JNIEnv *env, jobject obj, jstring jpath, jboolean juse_binary) { try { (void)obj; // new instance @@ -43,7 +43,7 @@ jlong Java_org_jau_nio_ByteInStream_1File_ctorImpl(JNIEnv *env, jobject obj, jst return (jlong) (intptr_t)nullptr; } -void Java_org_jau_nio_ByteInStream_1File_closeStream(JNIEnv *env, jobject obj) { +void Java_org_jau_io_ByteInStream_1File_closeStream(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done ref->close(); @@ -52,7 +52,7 @@ void Java_org_jau_nio_ByteInStream_1File_closeStream(JNIEnv *env, jobject obj) { } } -void Java_org_jau_nio_ByteInStream_1File_dtorImpl(JNIEnv *env, jclass clazz, jlong nativeInstance) { +void Java_org_jau_io_ByteInStream_1File_dtorImpl(JNIEnv *env, jclass clazz, jlong nativeInstance) { (void)clazz; try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> sref(nativeInstance, false /* throw_on_nullptr */); // hold copy until done @@ -65,7 +65,7 @@ void Java_org_jau_nio_ByteInStream_1File_dtorImpl(JNIEnv *env, jclass clazz, jlo } } -jboolean Java_org_jau_nio_ByteInStream_1File_check_1available(JNIEnv *env, jobject obj, jlong n) { +jboolean Java_org_jau_io_ByteInStream_1File_check_1available(JNIEnv *env, jobject obj, jlong n) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done return ref->check_available((size_t)n) ? JNI_TRUE : JNI_FALSE; @@ -75,7 +75,7 @@ jboolean Java_org_jau_nio_ByteInStream_1File_check_1available(JNIEnv *env, jobje return JNI_FALSE; } -jint Java_org_jau_nio_ByteInStream_1File_read(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength) { +jint Java_org_jau_io_ByteInStream_1File_read(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done @@ -98,7 +98,7 @@ jint Java_org_jau_nio_ByteInStream_1File_read(JNIEnv *env, jobject obj, jbyteArr return 0; } -jint Java_org_jau_nio_ByteInStream_1File_read2Impl(JNIEnv *env, jobject obj, jobject jout, jint out_offset) { +jint Java_org_jau_io_ByteInStream_1File_read2Impl(JNIEnv *env, jobject obj, jobject jout, jint out_offset) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done @@ -117,7 +117,7 @@ jint Java_org_jau_nio_ByteInStream_1File_read2Impl(JNIEnv *env, jobject obj, job return 0; } -jint Java_org_jau_nio_ByteInStream_1File_peek(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength, jlong jpeek_offset) { +jint Java_org_jau_io_ByteInStream_1File_peek(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength, jlong jpeek_offset) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done @@ -141,7 +141,7 @@ jint Java_org_jau_nio_ByteInStream_1File_peek(JNIEnv *env, jobject obj, jbyteArr return 0; } -jboolean Java_org_jau_nio_ByteInStream_1File_end_1of_1data(JNIEnv *env, jobject obj) { +jboolean Java_org_jau_io_ByteInStream_1File_end_1of_1data(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done return ref->end_of_data() ? JNI_TRUE : JNI_FALSE; @@ -151,7 +151,7 @@ jboolean Java_org_jau_nio_ByteInStream_1File_end_1of_1data(JNIEnv *env, jobject return JNI_TRUE; } -jboolean Java_org_jau_nio_ByteInStream_1File_error(JNIEnv *env, jobject obj) { +jboolean Java_org_jau_io_ByteInStream_1File_error(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done return ref->error() ? JNI_TRUE : JNI_FALSE; @@ -161,7 +161,7 @@ jboolean Java_org_jau_nio_ByteInStream_1File_error(JNIEnv *env, jobject obj) { return JNI_TRUE; } -jstring Java_org_jau_nio_ByteInStream_1File_id(JNIEnv *env, jobject obj) { +jstring Java_org_jau_io_ByteInStream_1File_id(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done return jau::jni::from_string_to_jstring(env, ref->id()); @@ -171,7 +171,7 @@ jstring Java_org_jau_nio_ByteInStream_1File_id(JNIEnv *env, jobject obj) { return nullptr; } -jlong Java_org_jau_nio_ByteInStream_1File_discard_1next(JNIEnv *env, jobject obj, jlong n) { +jlong Java_org_jau_io_ByteInStream_1File_discard_1next(JNIEnv *env, jobject obj, jlong n) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done @@ -183,7 +183,7 @@ jlong Java_org_jau_nio_ByteInStream_1File_discard_1next(JNIEnv *env, jobject obj return 0; } -jlong Java_org_jau_nio_ByteInStream_1File_get_1bytes_1read(JNIEnv *env, jobject obj) { +jlong Java_org_jau_io_ByteInStream_1File_get_1bytes_1read(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done return static_cast<jlong>( ref->get_bytes_read() ); @@ -193,7 +193,7 @@ jlong Java_org_jau_nio_ByteInStream_1File_get_1bytes_1read(JNIEnv *env, jobject return 0; } -jboolean Java_org_jau_nio_ByteInStream_1File_has_1content_1size(JNIEnv *env, jobject obj) { +jboolean Java_org_jau_io_ByteInStream_1File_has_1content_1size(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done return ref->has_content_size() ? JNI_TRUE : JNI_FALSE; @@ -203,7 +203,7 @@ jboolean Java_org_jau_nio_ByteInStream_1File_has_1content_1size(JNIEnv *env, job return JNI_FALSE; } -jlong Java_org_jau_nio_ByteInStream_1File_content_1size(JNIEnv *env, jobject obj) { +jlong Java_org_jau_io_ByteInStream_1File_content_1size(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj); // hold until done return static_cast<jlong>( ref->content_size() ); @@ -213,7 +213,7 @@ jlong Java_org_jau_nio_ByteInStream_1File_content_1size(JNIEnv *env, jobject obj return 0; } -jstring Java_org_jau_nio_ByteInStream_1File_toString(JNIEnv *env, jobject obj) { +jstring Java_org_jau_io_ByteInStream_1File_toString(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_File> ref(env, obj, false /* throw_on_nullptr */); // hold until done std::string str = ref.is_null() ? "null" : ref->to_string(); diff --git a/java_jni/jni/jau/ByteInStream_URL.cxx b/java_jni/jni/jau/ByteInStream_URL.cxx index 950a1c5..b85c114 100644 --- a/java_jni/jni/jau/ByteInStream_URL.cxx +++ b/java_jni/jni/jau/ByteInStream_URL.cxx @@ -22,7 +22,7 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include "org_jau_nio_ByteInStream_URL.h" +#include "org_jau_io_ByteInStream_URL.h" #include <jau/debug.hpp> @@ -30,7 +30,7 @@ #include "jau/byte_stream.hpp" -jlong Java_org_jau_nio_ByteInStream_1URL_ctorImpl(JNIEnv *env, jobject obj, jstring jurl, jlong jtimeoutMS) { +jlong Java_org_jau_io_ByteInStream_1URL_ctorImpl(JNIEnv *env, jobject obj, jstring jurl, jlong jtimeoutMS) { try { (void)obj; // new instance @@ -44,7 +44,7 @@ jlong Java_org_jau_nio_ByteInStream_1URL_ctorImpl(JNIEnv *env, jobject obj, jstr return (jlong) (intptr_t)nullptr; } -void Java_org_jau_nio_ByteInStream_1URL_closeStream(JNIEnv *env, jobject obj) { +void Java_org_jau_io_ByteInStream_1URL_closeStream(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done ref->close(); @@ -53,7 +53,7 @@ void Java_org_jau_nio_ByteInStream_1URL_closeStream(JNIEnv *env, jobject obj) { } } -void Java_org_jau_nio_ByteInStream_1URL_dtorImpl(JNIEnv *env, jclass clazz, jlong nativeInstance) { +void Java_org_jau_io_ByteInStream_1URL_dtorImpl(JNIEnv *env, jclass clazz, jlong nativeInstance) { (void)clazz; try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> sref(nativeInstance, false /* throw_on_nullptr */); // hold copy until done @@ -66,7 +66,7 @@ void Java_org_jau_nio_ByteInStream_1URL_dtorImpl(JNIEnv *env, jclass clazz, jlon } } -jboolean Java_org_jau_nio_ByteInStream_1URL_check_1available(JNIEnv *env, jobject obj, jlong n) { +jboolean Java_org_jau_io_ByteInStream_1URL_check_1available(JNIEnv *env, jobject obj, jlong n) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done return ref->check_available((size_t)n) ? JNI_TRUE : JNI_FALSE; @@ -76,7 +76,7 @@ jboolean Java_org_jau_nio_ByteInStream_1URL_check_1available(JNIEnv *env, jobjec return JNI_FALSE; } -jint Java_org_jau_nio_ByteInStream_1URL_read(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength) { +jint Java_org_jau_io_ByteInStream_1URL_read(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done @@ -99,7 +99,7 @@ jint Java_org_jau_nio_ByteInStream_1URL_read(JNIEnv *env, jobject obj, jbyteArra return 0; } -jint Java_org_jau_nio_ByteInStream_1URL_read2Impl(JNIEnv *env, jobject obj, jobject jout, jint out_offset) { +jint Java_org_jau_io_ByteInStream_1URL_read2Impl(JNIEnv *env, jobject obj, jobject jout, jint out_offset) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done @@ -118,7 +118,7 @@ jint Java_org_jau_nio_ByteInStream_1URL_read2Impl(JNIEnv *env, jobject obj, jobj return 0; } -jint Java_org_jau_nio_ByteInStream_1URL_peek(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength, jlong jpeek_offset) { +jint Java_org_jau_io_ByteInStream_1URL_peek(JNIEnv *env, jobject obj, jbyteArray jout, jint joffset, jint jlength, jlong jpeek_offset) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done @@ -142,7 +142,7 @@ jint Java_org_jau_nio_ByteInStream_1URL_peek(JNIEnv *env, jobject obj, jbyteArra return 0; } -jboolean Java_org_jau_nio_ByteInStream_1URL_end_1of_1data(JNIEnv *env, jobject obj) { +jboolean Java_org_jau_io_ByteInStream_1URL_end_1of_1data(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done return ref->end_of_data() ? JNI_TRUE : JNI_FALSE; @@ -152,7 +152,7 @@ jboolean Java_org_jau_nio_ByteInStream_1URL_end_1of_1data(JNIEnv *env, jobject o return JNI_TRUE; } -jboolean Java_org_jau_nio_ByteInStream_1URL_error(JNIEnv *env, jobject obj) { +jboolean Java_org_jau_io_ByteInStream_1URL_error(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done return ref->error() ? JNI_TRUE : JNI_FALSE; @@ -162,7 +162,7 @@ jboolean Java_org_jau_nio_ByteInStream_1URL_error(JNIEnv *env, jobject obj) { return JNI_TRUE; } -jstring Java_org_jau_nio_ByteInStream_1URL_id(JNIEnv *env, jobject obj) { +jstring Java_org_jau_io_ByteInStream_1URL_id(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done return jau::jni::from_string_to_jstring(env, ref->id()); @@ -172,7 +172,7 @@ jstring Java_org_jau_nio_ByteInStream_1URL_id(JNIEnv *env, jobject obj) { return nullptr; } -jlong Java_org_jau_nio_ByteInStream_1URL_discard_1next(JNIEnv *env, jobject obj, jlong n) { +jlong Java_org_jau_io_ByteInStream_1URL_discard_1next(JNIEnv *env, jobject obj, jlong n) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done @@ -184,7 +184,7 @@ jlong Java_org_jau_nio_ByteInStream_1URL_discard_1next(JNIEnv *env, jobject obj, return 0; } -jlong Java_org_jau_nio_ByteInStream_1URL_get_1bytes_1read(JNIEnv *env, jobject obj) { +jlong Java_org_jau_io_ByteInStream_1URL_get_1bytes_1read(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done return static_cast<jlong>( ref->get_bytes_read() ); @@ -194,7 +194,7 @@ jlong Java_org_jau_nio_ByteInStream_1URL_get_1bytes_1read(JNIEnv *env, jobject o return 0; } -jboolean Java_org_jau_nio_ByteInStream_1URL_has_1content_1size(JNIEnv *env, jobject obj) { +jboolean Java_org_jau_io_ByteInStream_1URL_has_1content_1size(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done return ref->has_content_size() ? JNI_TRUE : JNI_FALSE; @@ -204,7 +204,7 @@ jboolean Java_org_jau_nio_ByteInStream_1URL_has_1content_1size(JNIEnv *env, jobj return JNI_FALSE; } -jlong Java_org_jau_nio_ByteInStream_1URL_content_1size(JNIEnv *env, jobject obj) { +jlong Java_org_jau_io_ByteInStream_1URL_content_1size(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj); // hold until done return static_cast<jlong>( ref->content_size() ); @@ -214,7 +214,7 @@ jlong Java_org_jau_nio_ByteInStream_1URL_content_1size(JNIEnv *env, jobject obj) return 0; } -jstring Java_org_jau_nio_ByteInStream_1URL_toString(JNIEnv *env, jobject obj) { +jstring Java_org_jau_io_ByteInStream_1URL_toString(JNIEnv *env, jobject obj) { try { jau::jni::shared_ptr_ref<jau::io::ByteInStream_URL> ref(env, obj, false /* throw_on_nullptr */); // hold until done std::string str = ref.is_null() ? "null" : ref->to_string(); diff --git a/java_jni/jni/jau/jau_nio_uri.cxx b/java_jni/jni/jau/jau_io_UriTk.cxx index 918b523..b0ccf67 100644 --- a/java_jni/jni/jau/jau_nio_uri.cxx +++ b/java_jni/jni/jau/jau_io_UriTk.cxx @@ -22,7 +22,7 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include "org_jau_nio_Uri.h" +#include "org_jau_io_UriTk.h" #include <jau/debug.hpp> @@ -30,10 +30,10 @@ #include "jau/io_util.hpp" -jobject Java_org_jau_nio_Uri_supported_1protocols(JNIEnv *env, jclass cls) { +jobject Java_org_jau_io_UriTk_supported_1protocols(JNIEnv *env, jclass cls) { (void)cls; try { - std::vector<std::string_view> protos = jau::io::uri::supported_protocols(); + std::vector<std::string_view> protos = jau::io::uri_tk::supported_protocols(); return jau::jni::convert_vector_stringview_to_jarraylist(env, protos); } catch(...) { rethrow_and_raise_java_exception_jau(env); @@ -41,11 +41,11 @@ jobject Java_org_jau_nio_Uri_supported_1protocols(JNIEnv *env, jclass cls) { return nullptr; } -jstring Java_org_jau_nio_Uri_get_1scheme(JNIEnv *env, jclass cls, jstring juri) { +jstring Java_org_jau_io_UriTk_get_1scheme(JNIEnv *env, jclass cls, jstring juri) { (void)cls; try { const std::string uri = jau::jni::from_jstring_to_string(env, juri); - const std::string res(jau::io::uri::get_scheme(uri)); + const std::string res(jau::io::uri_tk::get_scheme(uri)); return jau::jni::from_string_to_jstring(env, res); } catch(...) { rethrow_and_raise_java_exception_jau(env); @@ -53,22 +53,22 @@ jstring Java_org_jau_nio_Uri_get_1scheme(JNIEnv *env, jclass cls, jstring juri) return nullptr; } -jboolean Java_org_jau_nio_Uri_protocol_1supported(JNIEnv *env, jclass cls, jstring juri) { +jboolean Java_org_jau_io_UriTk_protocol_1supported(JNIEnv *env, jclass cls, jstring juri) { (void)cls; try { const std::string uri = jau::jni::from_jstring_to_string(env, juri); - return jau::io::uri::protocol_supported(uri) ? JNI_TRUE : JNI_FALSE; + return jau::io::uri_tk::protocol_supported(uri) ? JNI_TRUE : JNI_FALSE; } catch(...) { rethrow_and_raise_java_exception_jau(env); } return JNI_FALSE; } -jboolean Java_org_jau_nio_Uri_is_1local_1file_1protocol(JNIEnv *env, jclass cls, jstring juri) { +jboolean Java_org_jau_io_UriTk_is_1local_1file_1protocol(JNIEnv *env, jclass cls, jstring juri) { (void)cls; try { const std::string uri = jau::jni::from_jstring_to_string(env, juri); - return jau::io::uri::is_local_file_protocol(uri) ? JNI_TRUE : JNI_FALSE; + return jau::io::uri_tk::is_local_file_protocol(uri) ? JNI_TRUE : JNI_FALSE; } catch(...) { rethrow_and_raise_java_exception_jau(env); } |