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-TokenIterator"))]
__jni_bindgen! {
    /// public interface [TokenIterator](https://developer.android.com/reference/org/apache/http/TokenIterator.html)
    ///
    /// Required feature: "org-apache-http-TokenIterator"
    #[deprecated] public interface TokenIterator ("org/apache/http/TokenIterator") extends crate::java::lang::Object, implements crate::java::util::Iterator {

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

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