public read() as String throws IOException
Reads the remaining data as text.
Implementations may decode bytes with a one-byte-per-character mapping. For file-based text workflows, prefer TextReader / FileReader.
TextReader
FileReader
Text read from the stream.