// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-nio-charset-CharsetDecoder"))]
__jni_bindgen! {
/// public class [CharsetDecoder](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html)
///
/// Required feature: "java-nio-charset-CharsetDecoder"
public class CharsetDecoder ("java/nio/charset/CharsetDecoder") extends crate::java::lang::Object {
/// [averageCharsPerByte](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#averageCharsPerByte())
pub fn averageCharsPerByte<'env>(&'env self) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "averageCharsPerByte", .descriptor == "()F"
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("java/nio/charset/CharsetDecoder\0", "averageCharsPerByte\0", "()F\0");
__jni_env.call_float_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [charset](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#charset())
///
/// Required features: "java-nio-charset-Charset"
#[cfg(any(feature = "all", all(feature = "java-nio-charset-Charset")))]
pub fn charset<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::charset::Charset>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "charset", .descriptor == "()Ljava/nio/charset/Charset;"
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("java/nio/charset/CharsetDecoder\0", "charset\0", "()Ljava/nio/charset/Charset;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [decode](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#decode(java.nio.ByteBuffer))
///
/// Required features: "java-nio-ByteBuffer", "java-nio-CharBuffer"
#[cfg(any(feature = "all", all(feature = "java-nio-ByteBuffer", feature = "java-nio-CharBuffer")))]
pub fn decode_ByteBuffer<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::ByteBuffer>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::CharBuffer>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "decode", .descriptor == "(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;"
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("java/nio/charset/CharsetDecoder\0", "decode\0", "(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [decode](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#decode(java.nio.ByteBuffer,%20java.nio.CharBuffer,%20boolean))
///
/// Required features: "java-nio-ByteBuffer", "java-nio-CharBuffer", "java-nio-charset-CoderResult"
#[cfg(any(feature = "all", all(feature = "java-nio-ByteBuffer", feature = "java-nio-CharBuffer", feature = "java-nio-charset-CoderResult")))]
pub fn decode_ByteBuffer_CharBuffer_boolean<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::ByteBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::CharBuffer>>, arg2: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::charset::CoderResult>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "decode", .descriptor == "(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;"
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_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/nio/charset/CharsetDecoder\0", "decode\0", "(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [detectedCharset](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#detectedCharset())
///
/// Required features: "java-nio-charset-Charset"
#[cfg(any(feature = "all", all(feature = "java-nio-charset-Charset")))]
pub fn detectedCharset<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::charset::Charset>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC, .name == "detectedCharset", .descriptor == "()Ljava/nio/charset/Charset;"
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("java/nio/charset/CharsetDecoder\0", "detectedCharset\0", "()Ljava/nio/charset/Charset;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [flush](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#flush(java.nio.CharBuffer))
///
/// Required features: "java-nio-CharBuffer", "java-nio-charset-CoderResult"
#[cfg(any(feature = "all", all(feature = "java-nio-CharBuffer", feature = "java-nio-charset-CoderResult")))]
pub fn flush<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::CharBuffer>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::charset::CoderResult>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "flush", .descriptor == "(Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult;"
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("java/nio/charset/CharsetDecoder\0", "flush\0", "(Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isAutoDetecting](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#isAutoDetecting())
pub fn isAutoDetecting<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC, .name == "isAutoDetecting", .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("java/nio/charset/CharsetDecoder\0", "isAutoDetecting\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isCharsetDetected](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#isCharsetDetected())
pub fn isCharsetDetected<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC, .name == "isCharsetDetected", .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("java/nio/charset/CharsetDecoder\0", "isCharsetDetected\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [malformedInputAction](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#malformedInputAction())
///
/// Required features: "java-nio-charset-CodingErrorAction"
#[cfg(any(feature = "all", all(feature = "java-nio-charset-CodingErrorAction")))]
pub fn malformedInputAction<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::charset::CodingErrorAction>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC, .name == "malformedInputAction", .descriptor == "()Ljava/nio/charset/CodingErrorAction;"
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("java/nio/charset/CharsetDecoder\0", "malformedInputAction\0", "()Ljava/nio/charset/CodingErrorAction;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [maxCharsPerByte](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#maxCharsPerByte())
pub fn maxCharsPerByte<'env>(&'env self) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "maxCharsPerByte", .descriptor == "()F"
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("java/nio/charset/CharsetDecoder\0", "maxCharsPerByte\0", "()F\0");
__jni_env.call_float_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onMalformedInput](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#onMalformedInput(java.nio.charset.CodingErrorAction))
///
/// Required features: "java-nio-charset-CharsetDecoder", "java-nio-charset-CodingErrorAction"
#[cfg(any(feature = "all", all(feature = "java-nio-charset-CharsetDecoder", feature = "java-nio-charset-CodingErrorAction")))]
pub fn onMalformedInput<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::charset::CodingErrorAction>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::charset::CharsetDecoder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "onMalformedInput", .descriptor == "(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;"
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("java/nio/charset/CharsetDecoder\0", "onMalformedInput\0", "(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onUnmappableCharacter](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#onUnmappableCharacter(java.nio.charset.CodingErrorAction))
///
/// Required features: "java-nio-charset-CharsetDecoder", "java-nio-charset-CodingErrorAction"
#[cfg(any(feature = "all", all(feature = "java-nio-charset-CharsetDecoder", feature = "java-nio-charset-CodingErrorAction")))]
pub fn onUnmappableCharacter<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::charset::CodingErrorAction>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::charset::CharsetDecoder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "onUnmappableCharacter", .descriptor == "(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;"
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("java/nio/charset/CharsetDecoder\0", "onUnmappableCharacter\0", "(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [replacement](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#replacement())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn replacement<'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 == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "replacement", .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("java/nio/charset/CharsetDecoder\0", "replacement\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [replaceWith](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#replaceWith(java.lang.String))
///
/// Required features: "java-lang-String", "java-nio-charset-CharsetDecoder"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-nio-charset-CharsetDecoder")))]
pub fn replaceWith<'env>(&'env self, arg0: 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::nio::charset::CharsetDecoder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "replaceWith", .descriptor == "(Ljava/lang/String;)Ljava/nio/charset/CharsetDecoder;"
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("java/nio/charset/CharsetDecoder\0", "replaceWith\0", "(Ljava/lang/String;)Ljava/nio/charset/CharsetDecoder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [reset](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#reset())
///
/// Required features: "java-nio-charset-CharsetDecoder"
#[cfg(any(feature = "all", all(feature = "java-nio-charset-CharsetDecoder")))]
pub fn reset<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::charset::CharsetDecoder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC | FINAL, .name == "reset", .descriptor == "()Ljava/nio/charset/CharsetDecoder;"
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("java/nio/charset/CharsetDecoder\0", "reset\0", "()Ljava/nio/charset/CharsetDecoder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [unmappableCharacterAction](https://developer.android.com/reference/java/nio/charset/CharsetDecoder.html#unmappableCharacterAction())
///
/// Required features: "java-nio-charset-CodingErrorAction"
#[cfg(any(feature = "all", all(feature = "java-nio-charset-CodingErrorAction")))]
pub fn unmappableCharacterAction<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::charset::CodingErrorAction>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/nio/charset/CharsetDecoder", java.flags == PUBLIC, .name == "unmappableCharacterAction", .descriptor == "()Ljava/nio/charset/CodingErrorAction;"
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("java/nio/charset/CharsetDecoder\0", "unmappableCharacterAction\0", "()Ljava/nio/charset/CodingErrorAction;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}