Skip to content

Tag Archives: Java-NIO package

The forName() method is a built-in method of the java.nio.charset returns a charset object for the named charset. In this function we pass a canonical… 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 contains() method is a built-in method of the java.nio.charset checks if a given charset is in another given charset. A charset X contains a… Read More
The canEncode() method is a built-in method of the java.nio.charset checks whether a particular charset supports encoding or not. Almost every charset can encode, except… 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 aliases() method is a built-in method of the java.nio.charset which returns a set containing this charset’s aliases. When an object can be referred by… Read More
The compareTo() method is a built-in method of the java.nio.charset compares two charsets with each other. A comparison is done by their canonical names, without… Read More
The equals() method is a built-in method of the java.nio.charset checks if a given object of charset is equal to another given object of the… 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 availableCharsets() method is a built-in method of the java.nio.charset constructs a sorted map from the canonical charset names to charset objects. The map thus… Read More
The toString() method is a built-in method of the java.nio.charset returns a string which describes the charset involved. Syntax: public final String toString() Parameters: The… Read More
The isRegistered() method is a built-in method of the java.nio.charset checks if a given charset is registered or not under the IANA Charset Registry. Syntax:… Read More
The name() method is a built-in method of the java.nio.charset returns the charset’s canonical name. Syntax: public final String name() Parameters: The function does not… 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 newEncoder() method is a built-in method of the java.nio.charset constructs a new encoder for this charset. Syntax: public abstract CharsetEncoder newEncoder() Parameters: The function… Read More

Start Your Coding Journey Now!