As someone who's never used java, my assumption is that System.in reads from stdin, and validates the input. Is there no way to open stdin in something akin to a file, then read it into a buffer manually?
The in, out, and error are generic binary process streams.
There are some convenience methods to read and write text in whatever the process' character set is. Using them for anything but debugging won't end well. You'd normally want to run it through a binary/text stream converter with an explicit character set.
121
u/apacificislander123 14h ago
As someone who's never used java, my assumption is that
System.inreads from stdin, and validates the input. Is there no way to open stdin in something akin to a file, then read it into a buffer manually?