jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "org-apache-http-conn-BasicEofSensorWatcher"))]
__jni_bindgen! {
    /// public class [BasicEofSensorWatcher](https://developer.android.com/reference/org/apache/http/conn/BasicEofSensorWatcher.html)
    ///
    /// Required feature: "org-apache-http-conn-BasicEofSensorWatcher"
    public class BasicEofSensorWatcher ("org/apache/http/conn/BasicEofSensorWatcher") extends crate::java::lang::Object, implements crate::org::apache::http::conn::EofSensorWatcher {

        /// [BasicEofSensorWatcher](https://developer.android.com/reference/org/apache/http/conn/BasicEofSensorWatcher.html#BasicEofSensorWatcher(org.apache.http.conn.ManagedClientConnection,%20boolean))
        ///
        /// Required features: "org-apache-http-conn-ManagedClientConnection"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-conn-ManagedClientConnection")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::conn::ManagedClientConnection>>, arg1: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::conn::BasicEofSensorWatcher>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicEofSensorWatcher", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Lorg/apache/http/conn/ManagedClientConnection;Z)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/BasicEofSensorWatcher\0", "<init>\0", "(Lorg/apache/http/conn/ManagedClientConnection;Z)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [eofDetected](https://developer.android.com/reference/org/apache/http/conn/BasicEofSensorWatcher.html#eofDetected(java.io.InputStream))
        ///
        /// Required features: "java-io-InputStream"
        #[cfg(any(feature = "all", all(feature = "java-io-InputStream")))]
        pub fn eofDetected<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::InputStream>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicEofSensorWatcher", java.flags == PUBLIC, .name == "eofDetected", .descriptor == "(Ljava/io/InputStream;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/BasicEofSensorWatcher\0", "eofDetected\0", "(Ljava/io/InputStream;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [streamClosed](https://developer.android.com/reference/org/apache/http/conn/BasicEofSensorWatcher.html#streamClosed(java.io.InputStream))
        ///
        /// Required features: "java-io-InputStream"
        #[cfg(any(feature = "all", all(feature = "java-io-InputStream")))]
        pub fn streamClosed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::InputStream>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicEofSensorWatcher", java.flags == PUBLIC, .name == "streamClosed", .descriptor == "(Ljava/io/InputStream;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/BasicEofSensorWatcher\0", "streamClosed\0", "(Ljava/io/InputStream;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [streamAbort](https://developer.android.com/reference/org/apache/http/conn/BasicEofSensorWatcher.html#streamAbort(java.io.InputStream))
        ///
        /// Required features: "java-io-InputStream"
        #[cfg(any(feature = "all", all(feature = "java-io-InputStream")))]
        pub fn streamAbort<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::InputStream>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicEofSensorWatcher", java.flags == PUBLIC, .name == "streamAbort", .descriptor == "(Ljava/io/InputStream;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/BasicEofSensorWatcher\0", "streamAbort\0", "(Ljava/io/InputStream;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}