[]Struct jni_android_sys::java::nio::charset::CharsetEncoder

#[repr(transparent)]
pub struct 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]

charset

Required features: "java-nio-charset-Charset"

pub fn replacement<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn replaceWith<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
[src]

replaceWith

Required features: "java-nio-charset-CharsetEncoder"

pub fn isLegalReplacement<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn malformedInputAction<'env>(
    &'env self
) -> Result<Option<Local<'env, CodingErrorAction>>, Local<'env, Throwable>>
[src]

malformedInputAction

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]

onMalformedInput

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]

unmappableCharacterAction

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]

onUnmappableCharacter

Required features: "java-nio-charset-CharsetEncoder", "java-nio-charset-CodingErrorAction"

pub fn averageBytesPerChar<'env>(
    &'env self
) -> Result<f32, Local<'env, Throwable>>
[src]

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]

encode

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]

flush

Required features: "java-nio-ByteBuffer", "java-nio-charset-CoderResult"

pub fn reset<'env>(
    &'env self
) -> Result<Option<Local<'env, CharsetEncoder>>, Local<'env, Throwable>>
[src]

reset

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]

encode

Required features: "java-nio-ByteBuffer", "java-nio-CharBuffer"

pub fn canEncode_char<'env>(
    &'env self,
    arg0: jchar
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn canEncode_CharSequence<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>
) -> Result<bool, Local<'env, Throwable>>
[src]

canEncode

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]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

type Target = Object

The resulting type after dereferencing.

impl JniType for CharsetEncoder

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.