Sdílet prostřednictvím


CharsetEncoder.ImplFlush(ByteBuffer) Method

Definition

Flushes this encoder.

[Android.Runtime.Register("implFlush", "(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;", "GetImplFlush_Ljava_nio_ByteBuffer_Handler")]
protected virtual Java.Nio.Charset.CoderResult? ImplFlush (Java.Nio.ByteBuffer? out);
[<Android.Runtime.Register("implFlush", "(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;", "GetImplFlush_Ljava_nio_ByteBuffer_Handler")>]
abstract member ImplFlush : Java.Nio.ByteBuffer -> Java.Nio.Charset.CoderResult
override this.ImplFlush : Java.Nio.ByteBuffer -> Java.Nio.Charset.CoderResult

Parameters

out
ByteBuffer

The output byte buffer

Returns

A coder-result object, either CoderResult#UNDERFLOW or CoderResult#OVERFLOW

Attributes

Remarks

Flushes this encoder.

The default implementation of this method does nothing, and always returns CoderResult#UNDERFLOW. This method should be overridden by encoders that may need to write final bytes to the output buffer once the entire input sequence has been read.

Java documentation for java.nio.charset.CharsetEncoder.implFlush(java.nio.ByteBuffer).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to