[−]Struct jni_android_sys::java::nio::charset::CharsetEncoder
public class CharsetEncoder
Required feature: "java-nio-charset-CharsetEncoder"
Methods
impl CharsetEncoder
pub fn charset<'env>(
&'env self
) -> Result<Option<Local<'env, Charset>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Charset>>, Local<'env, Throwable>>
Required features: "java-nio-charset-Charset"
pub fn replacement<'env>(
&'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
pub fn replaceWith<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
Required features: "java-nio-charset-CharsetEncoder"
pub fn isLegalReplacement<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<bool, Local<'env, Throwable>>
pub fn malformedInputAction<'env>(
&'env self
) -> Result<Option<Local<'env, CodingErrorAction>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, CodingErrorAction>>, Local<'env, Throwable>>
Required features: "java-nio-charset-CodingErrorAction"
pub fn onMalformedInput<'env>(
&'env self,
arg0: impl Into<Option<&'env CodingErrorAction>>
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CodingErrorAction>>
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
Required features: "java-nio-charset-CharsetEncoder", "java-nio-charset-CodingErrorAction"
pub fn unmappableCharacterAction<'env>(
&'env self
) -> Result<Option<Local<'env, CodingErrorAction>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, CodingErrorAction>>, Local<'env, Throwable>>
Required features: "java-nio-charset-CodingErrorAction"
pub fn onUnmappableCharacter<'env>(
&'env self,
arg0: impl Into<Option<&'env CodingErrorAction>>
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CodingErrorAction>>
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
Required features: "java-nio-charset-CharsetEncoder", "java-nio-charset-CodingErrorAction"
pub fn averageBytesPerChar<'env>(
&'env self
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<f32, Local<'env, Throwable>>
pub fn maxBytesPerChar<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>
[src]
pub fn encode_CharBuffer_ByteBuffer_boolean<'env>(
&'env self,
arg0: impl Into<Option<&'env CharBuffer>>,
arg1: impl Into<Option<&'env ByteBuffer>>,
arg2: bool
) -> Result<Option<Local<'env, CoderResult>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharBuffer>>,
arg1: impl Into<Option<&'env ByteBuffer>>,
arg2: bool
) -> Result<Option<Local<'env, CoderResult>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer", "java-nio-CharBuffer", "java-nio-charset-CoderResult"
pub fn flush<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<Option<Local<'env, CoderResult>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<Option<Local<'env, CoderResult>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer", "java-nio-charset-CoderResult"
pub fn reset<'env>(
&'env self
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
Required features: "java-nio-charset-CharsetEncoder"
pub fn encode_CharBuffer<'env>(
&'env self,
arg0: impl Into<Option<&'env CharBuffer>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharBuffer>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer", "java-nio-CharBuffer"
pub fn canEncode_char<'env>(
&'env self,
arg0: jchar
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: jchar
) -> Result<bool, Local<'env, Throwable>>
pub fn canEncode_CharSequence<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-CharSequence"
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for CharsetEncoder
impl AsValidJObjectAndEnv for CharsetEncoder
impl Deref for CharsetEncoder
impl JniType for CharsetEncoder
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for CharsetEncoder
impl !Send for CharsetEncoder
impl !Sync for CharsetEncoder
impl Unpin for CharsetEncoder
impl UnwindSafe for CharsetEncoder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,