// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "org-apache-http-util-EntityUtils"))]
__jni_bindgen! {
/// public final class [EntityUtils](https://developer.android.com/reference/org/apache/http/util/EntityUtils.html)
///
/// Required feature: "org-apache-http-util-EntityUtils"
#[deprecated] public final class EntityUtils ("org/apache/http/util/EntityUtils") extends crate::java::lang::Object {
/// [toByteArray](https://developer.android.com/reference/org/apache/http/util/EntityUtils.html#toByteArray(org.apache.http.HttpEntity))
///
/// Required features: "org-apache-http-HttpEntity"
#[cfg(any(feature = "all", all(feature = "org-apache-http-HttpEntity")))]
pub fn toByteArray<'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>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/util/EntityUtils", java.flags == PUBLIC | STATIC, .name == "toByteArray", .descriptor == "(Lorg/apache/http/HttpEntity;)[B"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/util/EntityUtils\0", "toByteArray\0", "(Lorg/apache/http/HttpEntity;)[B\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getContentCharSet](https://developer.android.com/reference/org/apache/http/util/EntityUtils.html#getContentCharSet(org.apache.http.HttpEntity))
///
/// Required features: "java-lang-String", "org-apache-http-HttpEntity"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-HttpEntity")))]
pub fn getContentCharSet<'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>>) -> __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/util/EntityUtils", java.flags == PUBLIC | STATIC, .name == "getContentCharSet", .descriptor == "(Lorg/apache/http/HttpEntity;)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/util/EntityUtils\0", "getContentCharSet\0", "(Lorg/apache/http/HttpEntity;)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [toString](https://developer.android.com/reference/org/apache/http/util/EntityUtils.html#toString(org.apache.http.HttpEntity,%20java.lang.String))
///
/// Required features: "java-lang-String", "org-apache-http-HttpEntity"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-HttpEntity")))]
pub fn toString_HttpEntity_String<'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::java::lang::String>>) -> __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/util/EntityUtils", java.flags == PUBLIC | STATIC, .name == "toString", .descriptor == "(Lorg/apache/http/HttpEntity;Ljava/lang/String;)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/util/EntityUtils\0", "toString\0", "(Lorg/apache/http/HttpEntity;Ljava/lang/String;)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [toString](https://developer.android.com/reference/org/apache/http/util/EntityUtils.html#toString(org.apache.http.HttpEntity))
///
/// Required features: "java-lang-String", "org-apache-http-HttpEntity"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-HttpEntity")))]
pub fn toString_HttpEntity<'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>>) -> __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/util/EntityUtils", java.flags == PUBLIC | STATIC, .name == "toString", .descriptor == "(Lorg/apache/http/HttpEntity;)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/util/EntityUtils\0", "toString\0", "(Lorg/apache/http/HttpEntity;)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
}
}