1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public class [AbstractInterruptibleChannel](https://developer.android.com/reference/java/nio/channels/spi/AbstractInterruptibleChannel.html) /// /// Required feature: java-nio-channels-spi-AbstractInterruptibleChannel #[cfg(any(feature = "all", feature = "java-nio-channels-spi-AbstractInterruptibleChannel"))] public class AbstractInterruptibleChannel extends crate::java::lang::Object, implements crate::java::nio::channels::Channel, crate::java::nio::channels::InterruptibleChannel { // // Not emitting: Non-public method // /// <init> // fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::java::nio::channels::spi::AbstractInterruptibleChannel>> { // // class.path == "java/nio/channels/spi/AbstractInterruptibleChannel", java.flags == PROTECTED, .name == "<init>", .descriptor == "()V" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/nio/channels/spi/AbstractInterruptibleChannel\0", "<init>\0", "()V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [close](https://developer.android.com/reference/java/nio/channels/spi/AbstractInterruptibleChannel.html#close()) pub fn close<'env>(&'env self) -> __jni_bindgen::Result<()> { // class.path == "java/nio/channels/spi/AbstractInterruptibleChannel", java.flags == PUBLIC | FINAL, .name == "close", .descriptor == "()V" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/nio/channels/spi/AbstractInterruptibleChannel\0", "close\0", "()V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Non-public method // /// [implCloseChannel](https://developer.android.com/reference/java/nio/channels/spi/AbstractInterruptibleChannel.html#implCloseChannel()) // fn impl_close_channel<'env>(&'env self) -> __jni_bindgen::Result<()> { // // class.path == "java/nio/channels/spi/AbstractInterruptibleChannel", java.flags == PROTECTED | ABSTRACT, .name == "implCloseChannel", .descriptor == "()V" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/nio/channels/spi/AbstractInterruptibleChannel\0", "implCloseChannel\0", "()V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } /// [isOpen](https://developer.android.com/reference/java/nio/channels/spi/AbstractInterruptibleChannel.html#isOpen()) pub fn is_open<'env>(&'env self) -> __jni_bindgen::Result<bool> { // class.path == "java/nio/channels/spi/AbstractInterruptibleChannel", java.flags == PUBLIC | FINAL, .name == "isOpen", .descriptor == "()Z" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/nio/channels/spi/AbstractInterruptibleChannel\0", "isOpen\0", "()Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Non-public method // /// [begin](https://developer.android.com/reference/java/nio/channels/spi/AbstractInterruptibleChannel.html#begin()) // fn begin<'env>(&'env self) -> __jni_bindgen::Result<()> { // // class.path == "java/nio/channels/spi/AbstractInterruptibleChannel", java.flags == PROTECTED | FINAL, .name == "begin", .descriptor == "()V" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/nio/channels/spi/AbstractInterruptibleChannel\0", "begin\0", "()V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Non-public method // /// [end](https://developer.android.com/reference/java/nio/channels/spi/AbstractInterruptibleChannel.html#end(boolean)) // fn end<'env>(&'env self, arg0: bool) -> __jni_bindgen::Result<()> { // // class.path == "java/nio/channels/spi/AbstractInterruptibleChannel", java.flags == PROTECTED | FINAL, .name == "end", .descriptor == "(Z)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/nio/channels/spi/AbstractInterruptibleChannel\0", "end\0", "(Z)V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } } }