Module java.base
Package java.nio.charset

# Class CharsetEncoder

=
public abstract class CharsetEncoder
extends java.lang.Object

## Constructors

- =
  protected CharsetEncoder(java.nio.charset.Charset arg0, float arg1, float arg2)
- =
  protected CharsetEncoder(java.nio.charset.Charset arg0, float arg1, float arg2, byte[] arg3)

## Methods

- =
  public final float averageBytesPerChar()
- =
  public boolean canEncode(char arg0)
- =
  public boolean canEncode(java.lang.CharSequence arg0)
- =
  public final java.nio.charset.Charset charset()
- =
  public final java.nio.ByteBuffer encode(java.nio.CharBuffer arg0) throws java.nio.charset.CharacterCodingException
- =
  public final java.nio.charset.CoderResult encode(java.nio.CharBuffer arg0, java.nio.ByteBuffer arg1, boolean arg2)
- =
  protected abstract java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer arg0, java.nio.ByteBuffer arg1)
- =
  public final java.nio.charset.CoderResult flush(java.nio.ByteBuffer arg0)
- =
  protected java.nio.charset.CoderResult implFlush(java.nio.ByteBuffer arg0)
- =
  protected void implOnMalformedInput(java.nio.charset.CodingErrorAction arg0)
- =
  protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction arg0)
- =
  protected void implReplaceWith(byte[] arg0)
- =
  protected void implReset()
- =
  public boolean isLegalReplacement(byte[] arg0)
- =
  public java.nio.charset.CodingErrorAction malformedInputAction()
- =
  public final float maxBytesPerChar()
- =
  public final java.nio.charset.CharsetEncoder onMalformedInput(java.nio.charset.CodingErrorAction arg0)
- =
  public final java.nio.charset.CharsetEncoder onUnmappableCharacter(java.nio.charset.CodingErrorAction arg0)
- =
  public final java.nio.charset.CharsetEncoder replaceWith(byte[] arg0)
- =
  public final byte[] replacement()
- =
  public final java.nio.charset.CharsetEncoder reset()
- =
  public java.nio.charset.CodingErrorAction unmappableCharacterAction()

## Summary

No differences.