When converting byte streams to character streams, which class is useful to handle the conversion?

  • ByteStreamReader
  • ByteToCharConverterStream
  • InputStreamReader
  • InputStreamWriter
When converting byte streams to character streams, you should use the InputStreamWriter class. It's used to bridge from byte streams to character streams and handles character encoding. ByteStreamReader and ByteToCharConverterStream are not standard classes in Java. InputStreamReader is used for byte-to-character conversion but not for handling the entire conversion process.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *