Skip to content

Tag Archives: Java-CharsetEncoder

The charset() method is a built-in method of the java.nio.charset.CharsetEncoder returns the charset that created this encoder. Syntax: public final Charset charset() Parameters: The function… Read More
The unmappableCharacterAction() method is a built-in method of the java.nio.charset.CharsetEncoder returns this encoder’s current action for unmappable-character errors. The CodingErrorAction are of three types IGNORE,… Read More
The maxBytesPerChar() method is a built-in method of the java.nio.charset.CharsetEncoder returns the maximum number of bytes that will be produced for each character of input.… Read More
The reset() method is a built-in method of the java.nio.charset.CharsetEncoder resets this encoder, and clears all the internal states if there are any. It also… Read More
The malformedInputAction() method is a built-in method of the java.nio.charset.CharsetEncoder returns this encoder’s current action for malformed-input errors. The CodingErrorAction thus returned are of three… Read More
The encode(CharBuffer input) method is a built-in method of the java.nio.charset.CharsetEncoder which encodes the content which is remaining of a single input character buffer to… Read More
The averageBytesPerChar() method is a built-in method of the java.nio.charset.CharsetEncoder which returns the average number of bytes that will be produced for each character of… Read More
The replacement() method is a built-in method of the java.nio.charset.CharsetEncoder returns a byte array which is the replacement value of the encoder. Syntax: public final… Read More
The isLegalReplacement() method is a built-in method of the java.nio.charset.CharsetEncoder gives us an indication on whether or not the given byte array is a legal… Read More