Java IO(Input/Output) is used to perform read and write operations. The java.io package contains all the classes required for input and output operation. Whereas, Java… Read More
Tag Archives: Java-nio-charset package
The detectedCharset() method is a built-in method of the java.nio.charset.CharsetDecoder class which retrieves the charset that has been detected by this decoder. The default implementation… Read More
The reset() method is a built-in method of the java.nio.charset.CharsetDecoder class which resets this CharsetDecoder and clears its internal state. Syntax: public final CharsetDecoder reset()… Read More
The isAutoDetecting() method is a built-in method of the java.nio.charset.CharsetDecoder class which tells whether or not this decoder implements an auto-detecting charset. Syntax: public boolean… Read More
The isCharsetDetected() method is a built-in method of the java.nio.charset.CharsetDecoder class which tells whether or not this decoder has yet detected a charset. The default… Read More
The malformedInputAction() method is a built-in method of the java.nio.charset.CharsetDecoder class which returns this decoder’s current action for malformed-input errors. Syntax: public CodingErrorAction malformedInputAction() Parameters:… Read More
The averageCharsPerByte() method is a built-in method of the java.nio.charset.CharsetDecoder class which returns the average number of characters that will be produced for each byte… Read More
The replacement() method is a built-in method of the java.nio.charset.CharsetDecoder class returns this decoder’s replacement value. The replacement value needs to be set inorder to… Read More
The maxCharsPerByte() method is a built-in method of the java.nio.charset.CharsetDecoder class which returns the maximum number of characters that will be produced for each byte… Read More
The unmappableCharacterAction() method is a built-in method of the java.nio.charset.CharsetDecoder class which returns this decoder’s current action for unmappable-character errors. Syntax: public CodingErrorAction unmappableCharacterAction() Parameters:… Read More