Skip to content

Tag Archives: Java-Charset

Default Character encoding or Charset in Java is used by Java Virtual Machine (JVM) to convert bytes into a string of characters in the absence… Read More
The hashCode() method is a built-in method of the java.nio.charset returns the computed hashcode of any given charset. Syntax: public final int hashCode() Parameters: The… Read More
The defaultCharset() method is a built-in method of the java.nio.charset which returns the charset object for the default charset. The default charset is basically determined… Read More
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 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 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 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 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 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 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 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 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 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
The newDecoder() method is a built-in method of the java.nio.charset constructs a new decoder for this charset. . Syntax: public abstract CharsetDecoder newDecoder() Parameters: The… Read More