// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "org-apache-http-message-LineParser"))]
__jni_bindgen! {
/// public interface [LineParser](https://developer.android.com/reference/org/apache/http/message/LineParser.html)
///
/// Required feature: "org-apache-http-message-LineParser"
public interface LineParser ("org/apache/http/message/LineParser") extends crate::java::lang::Object {
/// [parseProtocolVersion](https://developer.android.com/reference/org/apache/http/message/LineParser.html#parseProtocolVersion(org.apache.http.util.CharArrayBuffer,%20org.apache.http.message.ParserCursor))
///
/// Required features: "org-apache-http-ProtocolVersion", "org-apache-http-message-ParserCursor", "org-apache-http-util-CharArrayBuffer"
#[cfg(any(feature = "all", all(feature = "org-apache-http-ProtocolVersion", feature = "org-apache-http-message-ParserCursor", feature = "org-apache-http-util-CharArrayBuffer")))]
pub fn parseProtocolVersion<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::message::ParserCursor>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::ProtocolVersion>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/LineParser", java.flags == PUBLIC | ABSTRACT, .name == "parseProtocolVersion", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/ProtocolVersion;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/message/LineParser\0", "parseProtocolVersion\0", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/ProtocolVersion;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hasProtocolVersion](https://developer.android.com/reference/org/apache/http/message/LineParser.html#hasProtocolVersion(org.apache.http.util.CharArrayBuffer,%20org.apache.http.message.ParserCursor))
///
/// Required features: "org-apache-http-message-ParserCursor", "org-apache-http-util-CharArrayBuffer"
#[cfg(any(feature = "all", all(feature = "org-apache-http-message-ParserCursor", feature = "org-apache-http-util-CharArrayBuffer")))]
pub fn hasProtocolVersion<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::message::ParserCursor>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/LineParser", java.flags == PUBLIC | ABSTRACT, .name == "hasProtocolVersion", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/message/LineParser\0", "hasProtocolVersion\0", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [parseRequestLine](https://developer.android.com/reference/org/apache/http/message/LineParser.html#parseRequestLine(org.apache.http.util.CharArrayBuffer,%20org.apache.http.message.ParserCursor))
///
/// Required features: "org-apache-http-RequestLine", "org-apache-http-message-ParserCursor", "org-apache-http-util-CharArrayBuffer"
#[cfg(any(feature = "all", all(feature = "org-apache-http-RequestLine", feature = "org-apache-http-message-ParserCursor", feature = "org-apache-http-util-CharArrayBuffer")))]
pub fn parseRequestLine<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::message::ParserCursor>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::RequestLine>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/LineParser", java.flags == PUBLIC | ABSTRACT, .name == "parseRequestLine", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/RequestLine;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/message/LineParser\0", "parseRequestLine\0", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/RequestLine;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [parseStatusLine](https://developer.android.com/reference/org/apache/http/message/LineParser.html#parseStatusLine(org.apache.http.util.CharArrayBuffer,%20org.apache.http.message.ParserCursor))
///
/// Required features: "org-apache-http-StatusLine", "org-apache-http-message-ParserCursor", "org-apache-http-util-CharArrayBuffer"
#[cfg(any(feature = "all", all(feature = "org-apache-http-StatusLine", feature = "org-apache-http-message-ParserCursor", feature = "org-apache-http-util-CharArrayBuffer")))]
pub fn parseStatusLine<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::message::ParserCursor>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::StatusLine>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/LineParser", java.flags == PUBLIC | ABSTRACT, .name == "parseStatusLine", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/StatusLine;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/message/LineParser\0", "parseStatusLine\0", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/StatusLine;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [parseHeader](https://developer.android.com/reference/org/apache/http/message/LineParser.html#parseHeader(org.apache.http.util.CharArrayBuffer))
///
/// Required features: "org-apache-http-Header", "org-apache-http-util-CharArrayBuffer"
#[cfg(any(feature = "all", all(feature = "org-apache-http-Header", feature = "org-apache-http-util-CharArrayBuffer")))]
pub fn parseHeader<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::Header>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/LineParser", java.flags == PUBLIC | ABSTRACT, .name == "parseHeader", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;)Lorg/apache/http/Header;"
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/message/LineParser\0", "parseHeader\0", "(Lorg/apache/http/util/CharArrayBuffer;)Lorg/apache/http/Header;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}