InputStreamReader
InputStreamReader is a class in the Java I/O library that acts as a bridge between byte streams and character streams. It reads bytes from an underlying InputStream and decodes them into characters using a specified character set (charset) or the platform default if none is specified. It extends the Reader class and delegates the conversion of bytes to characters according to the chosen encoding.
Constructors of InputStreamReader provide flexibility for encoding choice. It can be created with InputStreamReader(InputStream in), which
Encoding and decoding behavior: InputStreamReader decodes bytes from the underlying stream into characters using the selected
Usage considerations: InputStreamReader is not buffered by itself; for efficient reading, it is common to wrap
See also: java.io.Reader, java.io.BufferedReader, java.nio.charset.Charset.