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-BasicManagedEntity"))]
__jni_bindgen! {
    /// public class [BasicManagedEntity](https://developer.android.com/reference/org/apache/http/conn/BasicManagedEntity.html)
    ///
    /// Required feature: "org-apache-http-conn-BasicManagedEntity"
    public class BasicManagedEntity ("org/apache/http/conn/BasicManagedEntity") extends crate::org::apache::http::entity::HttpEntityWrapper, implements crate::org::apache::http::conn::ConnectionReleaseTrigger, crate::org::apache::http::conn::EofSensorWatcher {

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

        /// [isRepeatable](https://developer.android.com/reference/org/apache/http/conn/BasicManagedEntity.html#isRepeatable())
        pub fn isRepeatable<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicManagedEntity", java.flags == PUBLIC, .name == "isRepeatable", .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("org/apache/http/conn/BasicManagedEntity\0", "isRepeatable\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getContent](https://developer.android.com/reference/org/apache/http/conn/BasicManagedEntity.html#getContent())
        ///
        /// Required features: "java-io-InputStream"
        #[cfg(any(feature = "all", all(feature = "java-io-InputStream")))]
        pub fn getContent<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::InputStream>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicManagedEntity", java.flags == PUBLIC, .name == "getContent", .descriptor == "()Ljava/io/InputStream;"
            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("org/apache/http/conn/BasicManagedEntity\0", "getContent\0", "()Ljava/io/InputStream;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [consumeContent](https://developer.android.com/reference/org/apache/http/conn/BasicManagedEntity.html#consumeContent())
        pub fn consumeContent<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicManagedEntity", java.flags == PUBLIC, .name == "consumeContent", .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("org/apache/http/conn/BasicManagedEntity\0", "consumeContent\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [writeTo](https://developer.android.com/reference/org/apache/http/conn/BasicManagedEntity.html#writeTo(java.io.OutputStream))
        ///
        /// Required features: "java-io-OutputStream"
        #[cfg(any(feature = "all", all(feature = "java-io-OutputStream")))]
        pub fn writeTo<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::OutputStream>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicManagedEntity", java.flags == PUBLIC, .name == "writeTo", .descriptor == "(Ljava/io/OutputStream;)V"
            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/BasicManagedEntity\0", "writeTo\0", "(Ljava/io/OutputStream;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [releaseConnection](https://developer.android.com/reference/org/apache/http/conn/BasicManagedEntity.html#releaseConnection())
        pub fn releaseConnection<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicManagedEntity", java.flags == PUBLIC, .name == "releaseConnection", .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("org/apache/http/conn/BasicManagedEntity\0", "releaseConnection\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [abortConnection](https://developer.android.com/reference/org/apache/http/conn/BasicManagedEntity.html#abortConnection())
        pub fn abortConnection<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/BasicManagedEntity", java.flags == PUBLIC, .name == "abortConnection", .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("org/apache/http/conn/BasicManagedEntity\0", "abortConnection\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [eofDetected](https://developer.android.com/reference/org/apache/http/conn/BasicManagedEntity.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/BasicManagedEntity", 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/BasicManagedEntity\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/BasicManagedEntity.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/BasicManagedEntity", 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/BasicManagedEntity\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/BasicManagedEntity.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/BasicManagedEntity", 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/BasicManagedEntity\0", "streamAbort\0", "(Ljava/io/InputStream;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}